egret

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 10 Imported by: 0

README

egret

golang单体应用脚手架

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(opts ...Option) *App

func (*App) Name

func (a *App) Name() string

func (*App) Run

func (a *App) Run() error

func (*App) Stop

func (a *App) Stop() error

func (*App) Version

func (a *App) Version() string

type AppInfo

type AppInfo interface {
	Name() string
	Version() string
}

type Option

type Option func(o *options)

func Addr

func Addr(addr string) Option

func Context

func Context(ctx context.Context) Option

func Name

func Name(name string) Option

func Server

func Server(srv *gin.Engine) Option

func Signal

func Signal(sigs ...os.Signal) Option

func Timeout

func Timeout(timeout time.Duration) Option

func Version

func Version(version string) Option

Jump to

Keyboard shortcuts

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