apiserver

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRelies

func InitRelies(opts *Option)

InitRelies init global relies

func InitRouter

func InitRouter(mode string) *gin.Engine

func Run

func Run()

Run start apiserver Server.

func SetFlags

func SetFlags()

Types

type Option

type Option struct {
	Mysql  db.Option     `yaml:"mysql"`
	Log    log.Option    `yaml:"log"`
	Email  email.Option  `yaml:"email"`
	Server server.Option `yaml:"server"`
}

Option stored the whole options that apiserver needs.

var (
	Opts *Option
)

func NewOption

func NewOption(config string) (*Option, error)

NewOption read config from config file. input the config file's path.

Directories

Path Synopsis
controller
service
v1

Jump to

Keyboard shortcuts

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