Documentation ¶
Index ¶
- func Check(ctx context.Context) (string, int32, error)
- func CheckAdmin(ctx context.Context) (string, error)
- func CheckAdminOr(ctx context.Context, userIDs ...string) error
- func CheckAdminOrUser(ctx context.Context) (string, int32, error)
- func CheckUser(ctx context.Context) (string, error)
- func GetOpUserID(ctx context.Context) string
- func GetUserType(ctx context.Context) (int, error)
- func HaveOpUser(ctx context.Context) bool
- func WithAdminUser(ctx context.Context, userID string) context.Context
- func WithApiToken(ctx context.Context, token string) context.Context
- func WithOpUserID(ctx context.Context, opUserID string, userType int) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpUserID ¶
func HaveOpUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.