app

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMOption

type ACMOption struct {
	Addr         string
	Tenant       string
	Group        string
	AccessKey    string
	SecretKey    string
	KmsRegionID  string
	KmsAccessKey string
	KmsSecretKey string
}

type App

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

func New

func New(setters ...Setter) (*App, func(), error)

func (*App) ACMGroup

func (a *App) ACMGroup() string

func (*App) Init

func (a *App) Init() error

func (*App) Logger

func (a *App) Logger() *zap.Logger

func (*App) Run

func (a *App) Run()

type BuildOption

type BuildOption struct {
	Service       string // 填写稳定的进程名或者服务名,便于以后查询
	CodeVersion   string // 代码版本
	GoVersion     string // go版本
	BuildDateTime string // 构建时间
	GitCommitHash string // git提交hash
	LastCommitMsg string // git最后一次提交comment
}

type Setter

type Setter func(app *App) error

func WithACMCOption

func WithACMCOption(option *ACMOption) Setter

func WithBuildOption

func WithBuildOption(option *BuildOption) Setter

func WithOnlyLoadConfig added in v0.1.8

func WithOnlyLoadConfig() Setter

Jump to

Keyboard shortcuts

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