app

package
v0.0.0-...-05d1b2a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Gin Options `json:"gin"`
}

func (Config) Close

func (a Config) Close() error

func (Config) Init

func (a Config) Init() error

type Option

type Option func(*Options)

func Env

func Env(env string) Option

func Mode

func Mode(mode string) Option

func Name

func Name(name string) Option

func Port

func Port(port string) Option

type Options

type Options struct {
	Name string `json:"name" mapstructure:"name"`
	Mode string `json:"mode" mapstructure:"mode"`
	Port string `json:"port" mapstructure:"port"`
	Env  string `json:"env" mapstructure:"env"`
}

func GetConfig

func GetConfig() Options

func NewOptions

func NewOptions(opts ...Option) Options

Jump to

Keyboard shortcuts

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