Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶ added in v1.1.0
NewGRPCServer creates a new grpc server instance.
func NewHTTPServer ¶ added in v1.1.0
NewHttpServer creates a new http server instance.
Types ¶
type Engine ¶ added in v1.1.3
type Engine struct {
// contains filtered or unexported fields
}
Engine includes the components and servers
func (*Engine) NonBlockingRun ¶ added in v1.1.3
func (engine *Engine) NonBlockingRun()
NonBlockingRun runs the engine with block until os.Exit.
func (*Engine) Run ¶ added in v1.1.3
func (engine *Engine) Run()
Run runs the engine with blocking mode.
func (*Engine) WithComponent ¶ added in v1.1.3
WithComponent use the provided components.
type NamedEngine ¶ added in v1.1.3
type NamedEngine struct { *Engine // contains filtered or unexported fields }
NamedEngine define engine with name.
func New ¶ added in v1.1.3
func New() *NamedEngine
New creates a new NamedEngine instance with default name.
func NewNamedEngine ¶ added in v1.1.3
func NewNamedEngine(name string) *NamedEngine
NewNamedEngine creates a new named engine.
func (*NamedEngine) Run ¶ added in v1.1.3
func (engine *NamedEngine) Run()
Run override engine Run function.
Click to show internal directories.
Click to hide internal directories.