app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdApp

func GetCmdApp() *_CmdApplication

func GetWebApp

func GetWebApp() *_WebApplication

Types

type CmdFunc

type CmdFunc func() error

type Config added in v0.0.3

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

func (*Config) GetEnv added in v0.0.3

func (v *Config) GetEnv() string

func (*Config) GetExecDir added in v0.0.3

func (v *Config) GetExecDir() string

func (*Config) GetVersion added in v0.0.3

func (v *Config) GetVersion() string

func (*Config) IsDevEnv added in v0.0.3

func (v *Config) IsDevEnv() bool

func (*Config) IsProdEnv added in v0.0.3

func (v *Config) IsProdEnv() bool

func (*Config) IsTestEnv added in v0.0.3

func (v *Config) IsTestEnv() bool

type Service

type Service interface {
	ParseConfig(logger.Interface, *Config) error
	Run(logger.Interface) error
	Close(logger.Interface) error
}

type WebConfig added in v0.0.3

type WebConfig struct {
	IP      string `json:"ip"`
	Port    int    `json:"port"`
	Timeout struct {
		Read  int `json:"read"`
		Write int `json:"write"`
		Idle  int `json:"idle"`
	} `json:"timeout"`
}

type WebFlowHook

type WebFlowHook interface {
	WebServiceBefore()
	WebStartBefore()
	WebCloseBefore()
}

type WebParseConfig added in v0.0.3

type WebParseConfig func(l logger.Interface, cfg *Config) (WebConfig, error)

type WebRouterHandle

type WebRouterHandle func(r gin.IRouter) error

Jump to

Keyboard shortcuts

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