Documentation ¶
Index ¶
- Constants
- func GetAuthorizationEnforcer(ctx context.Context) *casbin.Enforcer
- func GetCurrentUserID(ctx context.Context) int
- func GetDomain() string
- func GetEnvOrCrash(key string) string
- func GetEnvOrReturn(key string, fallback string) string
- func GetGinContext(ctx context.Context) *gin.Context
- func GetIPAddress(ctx context.Context) string
- func GetLifecycle() string
- func GetProjectRoot(differential ...string) (root string)
- func GetRegion() string
- func LoadEnvVars(differential ...string)
- type ContextRequest
Constants ¶
View Source
const ( ContextRequestGin = ContextRequest(ginContextKey) ContextRequestAuthorization = ContextRequest(authorizationContextKey) ContextRequestAuthentication = ContextRequest(authenticationContextKey) ContextRequestHost = ContextRequest(ipAddressContextKey) ContextRequestCustom = ContextRequest(customContextKey) )
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUserID ¶
func GetEnvOrCrash ¶
func GetEnvOrReturn ¶
func GetIPAddress ¶
func GetLifecycle ¶
func GetLifecycle() string
func GetProjectRoot ¶
func LoadEnvVars ¶
func LoadEnvVars(differential ...string)
Types ¶
type ContextRequest ¶
type ContextRequest string
func (ContextRequest) String ¶
func (c ContextRequest) String() string
Click to show internal directories.
Click to hide internal directories.