Documentation ¶
Index ¶
- type ApiName
- type ApiRequestState
- type LocalApiGatewayService
- func (l *LocalApiGatewayService) GetState() State
- func (l *LocalApiGatewayService) PublishActionState(state ApiRequestState)
- func (l *LocalApiGatewayService) Serve(stream apispb.Api_ServeServer) error
- func (l *LocalApiGatewayService) SubscribeToAction(subscription func(ApiRequestState))
- func (l *LocalApiGatewayService) SubscribeToState(subscriberFunction func(State))
- type ServiceName
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (l *LocalApiGatewayService) Serve(stream apispb.Api_ServeServer) error
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
Click to show internal directories.
Click to hide internal directories.