app

package
v0.0.0-...-0cb75ba Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) *App

func (*App) GRPCServer

func (a *App) GRPCServer()

func (*App) HTTPServer

func (a *App) HTTPServer() error

func (*App) InitAppConfig

func (a *App) InitAppConfig() error

func (*App) Run

func (a *App) Run()

type Config

type Config struct {
	Service      string
	Namespace    string
	Config       config.AppConfig
	Router       func(*gin.Engine)
	GRPCRegister func(*grpc.Server)
	InitFunc     []func() error
	TeardownFunc []func() error
}

func (Config) ConfigKey

func (c Config) ConfigKey() string

type Func

type Func struct {
	// contains filtered or unexported fields
}

func NewFn

func NewFn(fn func() error) Func

func NewFnWithOrder

func NewFnWithOrder(fn func() error, order int) Func

Jump to

Keyboard shortcuts

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