gsf_fof

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MulanPSL-2.0 Imports: 8 Imported by: 5

README

gsf-fof

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Web

type Web struct {
	Cfg struct {
		IP      string `yaml:"ip"`      // 监听端口
		Port    int    `yaml:"listen"`  // 监听端口
		RunMode string `yaml:"runmode"` // 服务运行模式
	}
	Handler    http.Handler
	RunBefore  func() error
	InitBefore func() error
}

func (*Web) CliFlags

func (c *Web) CliFlags() []cli.Flag

func (*Web) Close

func (c *Web) Close()

func (*Web) Init

func (c *Web) Init(cfg *gsf.AppConfig, ctx *cli.Context) (logger.Interface, error)

func (*Web) InitEnv added in v0.1.2

func (c *Web) InitEnv()

func (*Web) ParserFile added in v0.1.2

func (c *Web) ParserFile(cfg interface{}) error

func (*Web) Run

func (c *Web) Run(log logger.Interface, cfg *gsf.AppConfig) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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