apiserver

package
v0.0.0-...-8b3bf69 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func New

func New(

	bctx context.Context,
	log logrus.FieldLogger,
	cfg *config.Config,
	port int,
	rootRoute string,
	clients api_clients.APIClientsInterface,
	handlerMiddleware HttpHandlerMiddleware,
) (*APIServer, error)

func (*APIServer) ControlStream

func (srv *APIServer) ControlStream(
	ch *cp.Channel, rctx *req_context.Context,
) error

func (*APIServer) Listen

func (srv *APIServer) Listen() error

func (*APIServer) ServiceMapStream

func (srv *APIServer) ServiceMapStream(
	ch *cp.Channel, rctx *req_context.Context,
) error

func (*APIServer) Shutdown

func (srv *APIServer) Shutdown() error

type HttpHandlerMiddleware

type HttpHandlerMiddleware = func(http.Handler) http.Handler

type LoggingMiddleware

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

func (*LoggingMiddleware) Clone

func (*LoggingMiddleware) RunBeforePolling

func (lm *LoggingMiddleware) RunBeforePolling(ch *cp.Channel, msg *cp.Message) error

type WrappedRouteHandler

type WrappedRouteHandler func(*cp.Channel, *rcontext.Context) error

type WrappedRouteOptions

type WrappedRouteOptions struct {
	TimescapeRequired bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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