service

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderGet

func HeaderGet(h Header, name string) string

Types

type Desc

type Desc = service_inter.Desc

type Handler

type Handler = service_inter.Handler

type HandlerFunc

type HandlerFunc = service_inter.HandlerFunc
type Header = metadata.MD

type Middleware

type Middleware = service_inter.Middleware

type Options

type Options = service_inter.Options

type Request

type Request = service_inter.Request

type Response

type Response = service_inter.Response

type Service

type Service interface {
	AfterStops(...func())
	BeforeStops(...func())
	AfterStarts(...func())
	BeforeStarts(...func())
	Flags(flags ...cli.Flag)
	RegisterService(desc Desc)
	RegisterMatcher(priority int64, matches ...cmux.Matcher) chan net.Listener
	GrpcClientInnerConn() grpc.ClientConnInterface
	Plugin(plg plugin.Plugin)
	ServiceDesc() []Desc
	Options() Options
	Ctx() context.Context
	Middlewares() []Middleware
	RegisterApp(prefix string, r *fiber.App)
	RegisterRouter(prefix string, handlers ...fiber.Handler) fiber.Router
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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