Documentation ¶
Index ¶
- func Background() context.Context
- func GetClientID(ctx context.Context) string
- func GetUser(ctx context.Context) *model.User
- func GetUserID(ctx context.Context) string
- func IsInternalCall(ctx context.Context) bool
- func IsVerifiedCall(ctx context.Context) bool
- func NewRequestCtx(ctx context.Context, clientID string) context.Context
- func WithCancel(ctx context.Context) (context.Context, func())
- func WithInternalCall(ctx context.Context, b bool) context.Context
- func WithTimeout(ctx context.Context, t time.Duration) (context.Context, func())
- func WithUser(ctx context.Context, sessionID string, user *model.User) context.Context
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
func GetClientID ¶
func IsInternalCall ¶
func IsVerifiedCall ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.