Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MasterContextKeys the project's context keys MasterContextKeys = ContextKeys{ ProviderCtxKey: "provider", UserCtxKey: "auth-user", GinContextKey: "gin", ConfigCtxKey: "config", LoggerCtxKey: "logger", RoleServiceCtxKey: "role-service", UserServiceCtxKey: "user-service", AuthServiceCtxKey: "auth-service", ManagerServiceCtxKey: "manager-service", BrokerServiceCtxKey: "broker-service", } )
Functions ¶
func MustGetBool ¶
MustGetBool will return the env as boolean or panic if it is not present
func ToSnakeCase ¶
ToSnakeCase converts camelcase str to snake_case
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey defines a type for context keys shared in the app
type ContextKeys ¶
type ContextKeys struct { ProviderCtxKey ContextKey // Provider in Auth UserCtxKey ContextKey // User db object in Auth GinContextKey ContextKey ConfigCtxKey ContextKey LoggerCtxKey ContextKey RoleServiceCtxKey ContextKey UserServiceCtxKey ContextKey // XXX: redundant? AuthServiceCtxKey ContextKey // XXX: redundant? ManagerServiceCtxKey ContextKey BrokerServiceCtxKey ContextKey }
ContextKeys holds the context keys through the project
Click to show internal directories.
Click to hide internal directories.