apis

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiName

type ApiName = string

type ApiRequestState

type ApiRequestState struct {
	Api      string
	ReqCtx   *fasthttp.RequestCtx
	HttpResp *apispb.HttpResponse
}

type LocalApiGatewayService

type LocalApiGatewayService struct {
	*apis.RouteWorkerManager
	// contains filtered or unexported fields
}

func NewLocalApiGatewayService

func NewLocalApiGatewayService() *LocalApiGatewayService

func (*LocalApiGatewayService) GetState

func (l *LocalApiGatewayService) GetState() State

GetState - Returns a copy of internal state

func (*LocalApiGatewayService) PublishActionState

func (l *LocalApiGatewayService) PublishActionState(state ApiRequestState)

func (*LocalApiGatewayService) Serve

func (*LocalApiGatewayService) SubscribeToAction

func (l *LocalApiGatewayService) SubscribeToAction(subscription func(ApiRequestState))

func (*LocalApiGatewayService) SubscribeToState

func (l *LocalApiGatewayService) SubscribeToState(subscriberFunction func(State))

type ServiceName

type ServiceName = string

type State

type State = map[ApiName]map[ServiceName][]*apispb.RegistrationRequest

Jump to

Keyboard shortcuts

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