apis

package
v0.0.0-...-f74db93 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiName

type ApiName = string

type ApiRequestHandler

type ApiRequestHandler interface {
	apispb.ApiServer
	HandleRequest(apiName string, request *apispb.ServerMessage) (*apispb.ClientMessage, error)
	WorkerCount() int
}

type RouteWorker

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

type RouteWorkerManager

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

func New

func New() *RouteWorkerManager

func (*RouteWorkerManager) ApiDetails

func (*RouteWorkerManager) HandleRequest

func (s *RouteWorkerManager) HandleRequest(apiName string, request *apispb.ServerMessage) (*apispb.ClientMessage, error)

func (*RouteWorkerManager) Serve

func (*RouteWorkerManager) WorkerCount

func (s *RouteWorkerManager) WorkerCount() int

Jump to

Keyboard shortcuts

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