Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context interface { Logger() *log.Helper Ctx() context.Context ID() string Name() string Version() string Metadata() map[string]string Config() config.Config Endpoint() []string DB(name ...string) *gorm.DB Redis(name ...string) *redis.Client Loader(name string) []byte JWT() jwt.Jwt Deadline() (deadline time.Time, ok bool) Done() <-chan struct{} Err() error Value(key any) any }
func MustContext ¶
MustContext returns the Transport value stored in ctx, if any.
Click to show internal directories.
Click to hide internal directories.