package identity import ( "github.com/kataras/iris/v12" "time" "xps/cmd/bootstrap" ) func New(b *bootstrap.Bootstrapper) iris.Handler { return func(ctx iris.Context) { ctx.Header("App-Name", b.AppName) ctx.Header("App-Owner", b.AppOwner) ctx.Header("App-since", time.Since(b.AppSpawnDate).String()) ctx.Next() } } func Configure(b *bootstrap.Bootstrapper) { h := New(b) b.UseGlobal(h) }