Documentation ¶
Overview ¶
Package pkicache provides a rudimentary cached representation of a PKI Document suitable for server use.
Index ¶
- type Entry
- func (e *Entry) Document() *pki.Document
- func (e *Entry) Epoch() uint64
- func (e *Entry) GetByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
- func (e *Entry) GetIncomingByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
- func (e *Entry) GetOutgoingByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
- func (e *Entry) MuMaxDelay() uint64
- func (e *Entry) Outgoing() []*pki.MixDescriptor
- func (e *Entry) Self() *pki.MixDescriptor
- func (e *Entry) SendRatePerMinute() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is a cached PKI Document.
func (*Entry) GetByID ¶
func (e *Entry) GetByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
GetByID returns the MixDescriptor by node ID, or nil iff the node ID is not listed in the document.
func (*Entry) GetIncomingByID ¶
func (e *Entry) GetIncomingByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
GetIncomingByID returns the MixDescriptor for a incoming connection source queried by node ID, or nil iff the node ID is not a valid source.
func (*Entry) GetOutgoingByID ¶
func (e *Entry) GetOutgoingByID(id *[constants.NodeIDLength]byte) *pki.MixDescriptor
GetOutgoingByID returns the MixDescriptor for an outgoing connection destination queried by node ID, or nil iff the node ID is not a valid destination.
func (*Entry) MuMaxDelay ¶ added in v0.0.7
MixMaxDelay returns the MixMaxDelay for the cached PKI document.
func (*Entry) Outgoing ¶
func (e *Entry) Outgoing() []*pki.MixDescriptor
Outgoing returns a slice of all MixDescriptors that describe valid outgoing connection destinations.
func (*Entry) Self ¶
func (e *Entry) Self() *pki.MixDescriptor
Self returns the descriptor for the current node.
func (*Entry) SendRatePerMinute ¶ added in v0.0.5
SendRatePerMinute returns the SendRatePerMinute for the cached PKI document.