Documentation ¶
Index ¶
- Constants
- type Db
- func (db *Db) Batch(fn func(tx *bbolt.Tx) error) error
- func (db *Db) Close() error
- func (db *Db) RootBucket(tx *bbolt.Tx) (*bbolt.Bucket, error)
- func (db *Db) Snapshot(tx *bbolt.Tx) error
- func (db *Db) Stats() bbolt.Stats
- func (db *Db) Update(fn func(tx *bbolt.Tx) error) error
- func (db *Db) View(fn func(tx *bbolt.Tx) error) error
- type NameIndexedStore
- 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) GetIdentity() string
- func (entity *Terminator) GetIdentitySecret() []byte
- func (entity *Terminator) GetPeerData() xt.PeerData
- func (entity *Terminator) GetPrecedence() xt.Precedence
- 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" FieldTerminatorIdentity = "identity" FieldTerminatorIdentitySecret = "identitySecret" FieldTerminatorCost = "cost" FieldTerminatorPrecedence = "precedence" FieldServerPeerData = "peerData" )
View Source
const CurrentDbVersion = 4
View Source
const (
FieldName = "name"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameIndexedStore ¶ added in v0.17.0
type Router ¶
type Router struct { boltz.BaseExtEntity Name string Fingerprint *string }
func (*Router) GetEntityType ¶
func (*Router) LoadValues ¶
func (entity *Router) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Router) SetValues ¶
func (entity *Router) SetValues(ctx *boltz.PersistContext)
type RouterStore ¶
type Service ¶
type Service struct { boltz.BaseExtEntity Name string TerminatorStrategy string }
func (*Service) GetEntityType ¶
func (*Service) LoadValues ¶
func (entity *Service) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Service) SetValues ¶
func (entity *Service) SetValues(ctx *boltz.PersistContext)
type ServiceStore ¶
type Stores ¶
type Stores struct { Terminator TerminatorStore Router RouterStore Service ServiceStore // contains filtered or unexported fields }
func (*Stores) GetStoreForEntity ¶
func (*Stores) GetStoreList ¶
type Terminator ¶
type Terminator struct { boltz.BaseExtEntity Service string Router string Binding string Address string Identity string IdentitySecret []byte Cost uint16 Precedence string PeerData xt.PeerData }
func (*Terminator) GetAddress ¶
func (entity *Terminator) GetAddress() string
func (*Terminator) GetBinding ¶
func (entity *Terminator) GetBinding() string
func (*Terminator) GetCost ¶
func (entity *Terminator) GetCost() uint16
func (*Terminator) GetEntityType ¶
func (entity *Terminator) GetEntityType() string
func (*Terminator) GetIdentity ¶ added in v0.14.0
func (entity *Terminator) GetIdentity() string
func (*Terminator) GetIdentitySecret ¶ added in v0.14.0
func (entity *Terminator) GetIdentitySecret() []byte
func (*Terminator) GetPeerData ¶
func (entity *Terminator) GetPeerData() xt.PeerData
func (*Terminator) GetPrecedence ¶ added in v0.17.0
func (entity *Terminator) GetPrecedence() xt.Precedence
func (*Terminator) GetRouterId ¶
func (entity *Terminator) GetRouterId() string
func (*Terminator) GetServiceId ¶
func (entity *Terminator) GetServiceId() string
func (*Terminator) LoadValues ¶
func (entity *Terminator) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket)
func (*Terminator) SetValues ¶
func (entity *Terminator) SetValues(ctx *boltz.PersistContext)
type TerminatorStore ¶
type TestContext ¶
type TestContext struct { boltz.BaseTestContext // contains filtered or unexported fields }
func NewTestContext ¶
func NewTestContext(t testing.TB) *TestContext
func (*TestContext) GetDb ¶
func (ctx *TestContext) GetDb() boltz.Db
func (*TestContext) GetStoreForEntity ¶
func (ctx *TestContext) GetStoreForEntity(entity boltz.Entity) boltz.CrudStore
func (*TestContext) Init ¶
func (ctx *TestContext) Init()
Click to show internal directories.
Click to hide internal directories.