portadapter

package
v0.0.0-...-b5aaafc Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IP4toInt

func IP4toInt(IPv4Address net.IP) int64

Types

type IDGenerator

type IDGenerator struct {
}

IDGenerator ...

func NewIDGenerator

func NewIDGenerator() *IDGenerator

NewIDGenerator ...

func NewUUIIDGenerator

func NewUUIIDGenerator() *IDGenerator

NewUUIIDGenerator ...

func (*IDGenerator) NewID

func (idGenerator *IDGenerator) NewID() string

NewID generate new ID in domain id model/struct

type OrchestratorWorkerEntity

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

func NewOrchestratorWorkerEntity

func NewOrchestratorWorkerEntity(address string, grpcTimeout time.Duration, logging *logrus.Logger) *OrchestratorWorkerEntity

func (*OrchestratorWorkerEntity) RouteRuntimeConfig

func (orchestratorWorker *OrchestratorWorkerEntity) RouteRuntimeConfig(runtimeConfig []string,
	id string) error

type RouteEntity

type RouteEntity struct {
	sync.Mutex
	// contains filtered or unexported fields
}

RouteEntity ...

func NewRouteEntity

func NewRouteEntity(logging *logrus.Logger) *RouteEntity

NewRouteEntity ...

func (*RouteEntity) AddRoute

func (routeEntity *RouteEntity) AddRoute(hcDestIP string, hcTunDestIP string, id string) error

func (*RouteEntity) GetRouteRuntimeConfig

func (routeEntity *RouteEntity) GetRouteRuntimeConfig(id string) ([]string, error)

func (*RouteEntity) RemoveRoute

func (routeEntity *RouteEntity) RemoveRoute(hcDestIP string, hcTunDestIP string, id string) error

type UUIDGenerator

type UUIDGenerator struct {
}

UUIDGenerator ...

func (*UUIDGenerator) NewID

func (uuidGenerator *UUIDGenerator) NewID() string

NewID generate new ID in domain id model/struct

Jump to

Keyboard shortcuts

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