app

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 15 Imported by: 0

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

type AppContext struct {
	Locales *embed.FS
	*env.Env
	*db.DB
}

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 CreateHandlerFunc func() http.Handler

type Options

type Options struct {
	Locales       *embed.FS
	Seed          AppContextAwareFunc
	SetupApiGroup ApiGroupAwareFunc
	FinishSetup   AppContextAwareFunc
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL