Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(createHandler CreateHandlerFunc, appCtx *AppContext, opts *Options)
Types ¶
type ApiGroupAwareFunc ¶
type ApiGroupAwareFunc func(*gin.RouterGroup)
type AppContext ¶
func NewAppContext ¶
func NewAppContext(locales *embed.FS) *AppContext
func NewAppContextWithEnv ¶
func NewAppContextWithEnv(locales *embed.FS, env *env.Env) *AppContext
func (*AppContext) Close ¶
func (appCtx *AppContext) Close()
type AppContextAwareFunc ¶
type AppContextAwareFunc func(*AppContext)
type CreateHandlerFunc ¶
type Options ¶
type Options struct { Locales *embed.FS Seed AppContextAwareFunc SetupApiGroup ApiGroupAwareFunc FinishSetup AppContextAwareFunc }
Click to show internal directories.
Click to hide internal directories.