apis

package
v1.55.14 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 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 GetApiAddress added in v1.55.10

type GetApiAddress = func(apiName string) string

type LocalApiGatewayService

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

func NewLocalApiGatewayService

func NewLocalApiGatewayService(getApiAddress GetApiAddress) *LocalApiGatewayService

func (*LocalApiGatewayService) ApiDetails added in v1.55.10

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