core

package
v0.0.0-...-37838c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 NewApp

func NewApp(opts ...Option) *App

func (*App) Config

func (a *App) Config() *viper.Viper

func (*App) ID

func (a *App) ID() string

func (*App) Logger

func (a *App) Logger() *log.Helper

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 Apper

type Apper interface {
	ID() string
	Name() string
	Version() string
}

type Option

type Option func(o *options)

func Context

func Context(ctx context.Context) Option

func Id

func Id(id string) Option

func Logger

func Logger(logger log.Logger) Option

func Name

func Name(name string) Option

func Router

func Router(r *gin.Engine) Option

func Signal

func Signal(sigs []os.Signal) Option

func Version

func Version(version string) Option

func Viper

func Viper(v *viper.Viper) Option

Directories

Path Synopsis
env
proto
Package proto defines the protobuf codec.
Package proto defines the protobuf codec.
xml

Jump to

Keyboard shortcuts

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