revconproxy

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 BridgeProvider

type BridgeProvider interface {
	CreateConnection(ctx context.Context, id uint64, addr string) (*network.Bridge, error)
}

type Config

type Config struct {
	NameSpace string           `yaml:"namespace"`
	CtrlAPI   string           `mapstructure:"ctrl_api"`
	Services  []ServiceCongfig `yaml:"services"`
}

type RCPService

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

func New

func New(cfg *Config, bridgeProv BridgeProvider) *RCPService

func (*RCPService) CreateConnection

func (s *RCPService) CreateConnection(ctx context.Context, _, serviceName string, id uint64) error

TODO Do i need namespace here as argument?

func (*RCPService) NameSpace

func (s *RCPService) NameSpace() string

func (*RCPService) ServiceNames

func (s *RCPService) ServiceNames() []string

type ServiceCongfig

type ServiceCongfig struct {
	Name    string `yaml:"name"`
	Address string `yaml:"address"`
}

Jump to

Keyboard shortcuts

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