starters

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiInitializers

func GetApiInitializers() []base.Initializer

获取注册的web api初始化对象

func Iris

func Iris() *iris.Application

func Props

func Props() kvs.ConfigSource

func RedisClient

func RedisClient() *redis.Client

func Register

func Register(fn func())

func RegisterApi

func RegisterApi(ai base.Initializer)

注册web api初始化对象

func RpcRegister

func RpcRegister(ri interface{})

func RpcServer

func RpcServer() *rpc.Server

func Transtate

func Transtate() ut.Translator

func Validate

func Validate() *validator.Validate

func ValidateStruct

func ValidateStruct(s interface{}) (err error)

func XormEngine

func XormEngine() *xorm.Engine

Types

type GoRpcStarter

type GoRpcStarter struct {
	base.BaseStarter
	// contains filtered or unexported fields
}

func (*GoRpcStarter) Init

func (g *GoRpcStarter) Init(ctx base.StarterContext)

func (*GoRpcStarter) Start

func (g *GoRpcStarter) Start(ctx base.StarterContext)

type HookStarter

type HookStarter struct {
	base.BaseStarter
}

func (*HookStarter) Init

func (s *HookStarter) Init(ctx base.StarterContext)

func (*HookStarter) Start

func (s *HookStarter) Start(ctx base.StarterContext)

type IrisServerStarter

type IrisServerStarter struct {
	base.BaseStarter
}

func (*IrisServerStarter) Init

func (i *IrisServerStarter) Init(ctx base.StarterContext)

func (*IrisServerStarter) Start

func (i *IrisServerStarter) Start(ctx base.StarterContext)

func (*IrisServerStarter) StartBlocking

func (i *IrisServerStarter) StartBlocking() bool

type PropsStarter

type PropsStarter struct {
	base.BaseStarter
}

func (*PropsStarter) Init

func (p *PropsStarter) Init(ctx base.StarterContext)

func (*PropsStarter) SetUp

func (p *PropsStarter) SetUp(ctx base.StarterContext)

func (*PropsStarter) Start

func (p *PropsStarter) Start(ctx base.StarterContext)

type RedisStarter

type RedisStarter struct {
	base.BaseStarter
}

func (*RedisStarter) Init

func (r *RedisStarter) Init(ctx base.StarterContext)

func (*RedisStarter) Setup

func (r *RedisStarter) Setup(ctx base.StarterContext)

func (*RedisStarter) Stop

func (r *RedisStarter) Stop(ctx base.StarterContext)

type ValidatorStarter

type ValidatorStarter struct {
	base.BaseStarter
}

func (*ValidatorStarter) Init

func (v *ValidatorStarter) Init(ctx base.StarterContext)

type WebApiStarter

type WebApiStarter struct {
	base.BaseStarter
}

func (*WebApiStarter) Setup

func (w *WebApiStarter) Setup(ctx base.StarterContext)

type XormEngineStarter

type XormEngineStarter struct {
	base.BaseStarter
}

func (*XormEngineStarter) Init

func (x *XormEngineStarter) Init(ctx base.StarterContext)

func (*XormEngineStarter) Setup

func (x *XormEngineStarter) Setup(ctx base.StarterContext)

Jump to

Keyboard shortcuts

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