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: 12 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 IPRuleEntity

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

IPRuleEntity ...

func NewIPRuleEntity

func NewIPRuleEntity(logging *logrus.Logger) *IPRuleEntity

NewIPRuleEntity ...

func (*IPRuleEntity) AddIPRule

func (ipRuleEntity *IPRuleEntity) AddIPRule(hcTunDestIP string, id string) error

func (*IPRuleEntity) GetIPRuleRuntimeConfig

func (ipRuleEntity *IPRuleEntity) GetIPRuleRuntimeConfig(id string) (map[int]struct{}, error)

func (*IPRuleEntity) RemoveIPRule

func (ipRuleEntity *IPRuleEntity) RemoveIPRule(hcTunDestIP string, id string) error

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 map[int]struct{},
	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