Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscardOption ¶ added in v0.6.5
type DiscardOption interface {
// contains filtered or unexported methods
}
DiscardOption is an indication store discard option
type Event ¶
type Event struct { // Type is the event type Type EventType // Indication is the indication Indication Indication }
Event is a store event
type EventType ¶
type EventType string
EventType is a store event type
const ( // EventNone indicates an event that was not triggered but replayed EventNone EventType = "" // EventInsert indicates the message was inserted into the store EventInsert EventType = "insert" // EventUpdate indicates the message was updated in the store EventUpdate EventType = "update" // EventDelete indicates the message was deleted from the store EventDelete EventType = "remove" )
type ID ¶
type ID string
ID is a message identifier
func GetID ¶
func GetID(message *e2ap.RicIndication) ID
GetID gets the telemetry store ID for the given message
type Indication ¶ added in v0.6.5
type Indication struct { *e2ap.RicIndication // ID is the unique indication identifier ID ID // Revision is the indication revision number Revision Revision }
Indication is an indication message
func New ¶ added in v0.6.5
func New(indication *e2ap.RicIndication) *Indication
New creates a new indication
type LookupOption ¶ added in v0.6.5
type LookupOption interface {
// contains filtered or unexported methods
}
LookupOption is an indication store lookup option
type RecordOption ¶ added in v0.6.5
type RecordOption interface {
// contains filtered or unexported methods
}
RecordOption is an indication store record option
type Store ¶
type Store interface { io.Closer // Lookup looks up an indication by ID Lookup(ID, ...LookupOption) (*Indication, error) // Record records an indication in the store Record(*Indication, ...RecordOption) error // Discard discards an indication from the store Discard(ID, ...DiscardOption) error // List all of the last up to date messages List(ch chan<- Indication) error // Watch watches the store for changes Watch(ch chan<- Event, opts ...WatchOption) error // Clear deletes all messages from the store Clear() error }
Store is interface for store
func NewDistributedStore ¶
NewDistributedStore creates a new distributed indications store
func NewLocalStore ¶
NewLocalStore returns a new local indications store
type WatchOption ¶
type WatchOption interface {
// contains filtered or unexported methods
}
WatchOption is a message store watch option
func WithReplay ¶
func WithReplay() WatchOption
WithReplay returns a watch option that replays existing messages
Click to show internal directories.
Click to hide internal directories.