Documentation ¶
Index ¶
- Constants
- type Db
- type Router
- type RouterStore
- type Service
- type ServiceStore
- type Stores
- type Terminator
- func (entity *Terminator) GetAddress() string
- func (entity *Terminator) GetBinding() string
- func (entity *Terminator) GetCost() uint16
- func (entity *Terminator) GetEntityType() string
- func (entity *Terminator) GetPeerData() map[uint32][]byte
- func (entity *Terminator) GetRouterId() string
- func (entity *Terminator) GetServiceId() string
- func (entity *Terminator) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
- func (entity *Terminator) SetValues(ctx *boltz.PersistContext)
- type TerminatorStore
- type TestContext
Constants ¶
View Source
const ( FieldServiceEgress = "egress" FieldServiceBinding = "binding" FieldServiceEndpoint = "endpoint" )
View Source
const ( EntityTypeRouters = "routers" FieldRouterFingerprint = "fingerprint" )
View Source
const ( EntityTypeServices = "services" FieldServiceTerminatorStrategy = "terminatorStrategy" )
View Source
const ( EntityTypeTerminators = "terminators" FieldTerminatorService = "service" FieldTerminatorRouter = "router" FieldTerminatorBinding = "binding" FieldTerminatorAddress = "address" FieldTerminatorCost = "cost" FieldServerPeerData = "peerData" )
View Source
const CurrentDbVersion = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶ added in v0.10.1
type Router struct { boltz.BaseExtEntity Fingerprint string }
func (*Router) GetEntityType ¶ added in v0.10.1
func (*Router) LoadValues ¶ added in v0.10.1
func (entity *Router) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Router) SetValues ¶ added in v0.10.1
func (entity *Router) SetValues(ctx *boltz.PersistContext)
type RouterStore ¶ added in v0.10.1
type Service ¶ added in v0.10.1
type Service struct { boltz.BaseExtEntity TerminatorStrategy string }
func (*Service) GetEntityType ¶ added in v0.10.1
func (*Service) LoadValues ¶ added in v0.10.1
func (entity *Service) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Service) SetValues ¶ added in v0.10.1
func (entity *Service) SetValues(ctx *boltz.PersistContext)
type ServiceStore ¶ added in v0.10.1
type Stores ¶ added in v0.10.1
type Stores struct { Terminator TerminatorStore Router RouterStore Service ServiceStore // contains filtered or unexported fields }
func (*Stores) GetStoreForEntity ¶ added in v0.11.0
func (*Stores) GetStoreList ¶ added in v0.11.0
type Terminator ¶ added in v0.11.0
type Terminator struct { boltz.BaseExtEntity Service string Router string Binding string Address string Cost uint16 PeerData map[uint32][]byte }
func (*Terminator) GetAddress ¶ added in v0.11.19
func (entity *Terminator) GetAddress() string
func (*Terminator) GetBinding ¶ added in v0.11.19
func (entity *Terminator) GetBinding() string
func (*Terminator) GetCost ¶ added in v0.11.19
func (entity *Terminator) GetCost() uint16
func (*Terminator) GetEntityType ¶ added in v0.11.0
func (entity *Terminator) GetEntityType() string
func (*Terminator) GetPeerData ¶ added in v0.11.19
func (entity *Terminator) GetPeerData() map[uint32][]byte
func (*Terminator) GetRouterId ¶ added in v0.11.19
func (entity *Terminator) GetRouterId() string
func (*Terminator) GetServiceId ¶ added in v0.11.19
func (entity *Terminator) GetServiceId() string
func (*Terminator) LoadValues ¶ added in v0.11.0
func (entity *Terminator) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Terminator) SetValues ¶ added in v0.11.0
func (entity *Terminator) SetValues(ctx *boltz.PersistContext)
type TerminatorStore ¶ added in v0.11.0
type TestContext ¶ added in v0.11.0
type TestContext struct { boltz.BaseTestContext // contains filtered or unexported fields }
func NewTestContext ¶ added in v0.11.0
func NewTestContext(t *testing.T) *TestContext
func (*TestContext) GetDb ¶ added in v0.11.0
func (ctx *TestContext) GetDb() boltz.Db
func (*TestContext) GetStoreForEntity ¶ added in v0.11.0
func (ctx *TestContext) GetStoreForEntity(entity boltz.Entity) boltz.CrudStore
func (*TestContext) Init ¶ added in v0.11.0
func (ctx *TestContext) Init()
Click to show internal directories.
Click to hide internal directories.