server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	// contains filtered or unexported fields
}

func NewGRPC

func NewGRPC(opts GRPCOpts) (*GRPC, error)

func (*GRPC) Run

func (g *GRPC) Run(ctx context.Context) error

type GRPCOpts

type GRPCOpts struct {
	Address    string
	Logger     *zap.Logger
	GRPCServer *grpc.Server
}

type GRPCServer

type GRPCServer struct{}

type GrpcInterceptorInjector

type GrpcInterceptorInjector interface {
	Handle(ctx context.Context,
		req interface{},
		info *grpc.UnaryServerInfo,
		handler grpc.UnaryHandler) (resp interface{}, err error)
}

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

func NewHTTP

func NewHTTP(opts HTTPOpts) (*HTTP, error)

func (*HTTP) Run

func (h *HTTP) Run(ctx context.Context) error

type HTTPOpts

type HTTPOpts struct {
	Address string
	Logger  *zap.Logger
	Handler http.Handler
	// TLS protocol is used when this field is not nil.
	TLS *tls.Config
}

Directories

Path Synopsis
Package admin provides an Admin server for Kong Control-plane.
Package admin provides an Admin server for Kong Control-plane.
kong
ws

Jump to

Keyboard shortcuts

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