Documentation ¶
Index ¶
- func AttachAuthInfo(ctx context.Context, a AuthInfo) context.Context
- func AttachOperator(ctx context.Context, o *usecase.Operator) context.Context
- func AttachUsecases(ctx context.Context, u *interfaces.Container) context.Context
- func AttachUser(ctx context.Context, u *user.User) context.Context
- func Lang(ctx context.Context, lang *string) string
- func Operator(ctx context.Context) *usecase.Operator
- func Usecases(ctx context.Context) *interfaces.Container
- func User(ctx context.Context) *user.User
- type AuthInfo
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachAuthInfo ¶ added in v0.6.0
func AttachUsecases ¶
Types ¶
type AuthInfo ¶ added in v0.6.0
type AuthInfo struct { Token string Sub string Iss string Name string Email string EmailVerified *bool }
func GetAuthInfo ¶ added in v0.6.0
type ContextKey ¶
type ContextKey string
Click to show internal directories.
Click to hide internal directories.