app

package
v0.0.0-...-5ced209 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InjectorSet = wire.NewSet(wire.Struct(new(Injector), "*"))

Functions

func Init

func Init(ctx context.Context, optFuncs ...Option) func()

func InitConfig

func InitConfig(opts *options) func()

func InitHttpServer

func InitHttpServer(ctx context.Context, handler http.Handler) func()

func Launch

func Launch(ctx context.Context, opts ...Option)

Types

type Injector

type Injector struct {
	Engine  *gin.Engine
	Handler *api.Handler
	Redis   *redis.Client
}

func InitInjector

func InitInjector() (*Injector, func(), error)

type Option

type Option func(*options)

func SetConfigFile

func SetConfigFile(configFile string) Option

func SetWWWDir

func SetWWWDir(wwwDir string) Option

Jump to

Keyboard shortcuts

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