ctrlapi

package
v0.0.0-...-5fac4bd Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	api.UnimplementedExchangeServiceServer
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, exchangeSvc ExchangeService) *API

func (*API) RegisterService

func (a *API) RegisterService(req *api.RegisterRequest, stream grpc.ServerStreamingServer[api.ConnectCommand]) error

func (*API) Run

func (a *API) Run(ctx context.Context) error

type Config

type Config struct {
	Listen string
}

type ExchangeService

type ExchangeService interface {
	RegisterRevProxy(ctx context.Context, nameSpace string, services []string) (*exchange.RevProxy, error)
	UnregisterRevProxy(proxy *exchange.RevProxy)
}

Jump to

Keyboard shortcuts

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