service

package
v0.0.0-...-41aba7b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mode = "Pro"

Functions

func GetBeforeAppExit

func GetBeforeAppExit() []func() error

func GetBeforeAppRun

func GetBeforeAppRun() []func() error

func IsDebug

func IsDebug() bool

func Main

func Main() error

func RegisterBeforeAppExitHook

func RegisterBeforeAppExitHook(opts ...func() error)

func RegisterBeforeAppRunHook

func RegisterBeforeAppRunHook(opts ...func() error)

func Server

func Server() *grpc.Server

Types

type State

type State struct {
	logger.Logger

	*neon.Session
	// contains filtered or unexported fields
}

func NewState

func NewState(ctx context.Context) *State

func (*State) Context

func (m *State) Context() context.Context

func (*State) ContextWithTimeout

func (m *State) ContextWithTimeout(timeout time.Duration) context.Context

func (*State) GrpcClientCtx

func (m *State) GrpcClientCtx() context.Context

GrpcClientCtx return a new grpc client context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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