gsf_fof

package module
v0.1.1 Latest Latest
Warning

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

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

README

gsf-fof

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParserFile

func ParserFile(cfg interface{}) error

Types

type Web

type Web struct {
	Cfg struct {
		IP      string `yaml:"ip"`      // 监听端口
		Port    int    `yaml:"listen"`  // 监听端口
		RunMode string `yaml:"runmode"` // 服务运行模式
	}
	Handler  http.Handler
	InitData 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) 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