app

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDelayHook

func AddDelayHook(hooks ...HookFunc)

func AddHook

func AddHook(hooks ...HookFunc)

func Error

func Error(err error)

func ErrorCh

func ErrorCh() chan error

func NewGrpcServer

func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server

func Start

func Start() error

func Stop

func Stop()

Types

type APP

type APP struct {
	HttpEngine *gin.Engine

	GrpcEngine *grpc.Server
	// contains filtered or unexported fields
}

func NewApp

func NewApp(ctx context.Context) *APP

type HookFunc

type HookFunc func(ctx context.Context) error

Jump to

Keyboard shortcuts

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