Documentation ¶
Index ¶
- Constants
- func NewEventChain(parent ulid.I, pbs []*pb.BroadcastEvent) ([]events.Event, error)
- type Broadcaster
- type Event
- func (e *Event) Id() ulid.I
- func (e *Event) MarshalProto() ([]byte, error)
- func (e *Event) Parent() ulid.I
- func (e *Event) PbBroadcastEvent() *pb.BroadcastEvent
- func (e *Event) UnmarshalProto(data []byte) error
- func (e Event) WithId(id ulid.I) events.Event
- func (e Event) WithParent(parent ulid.I) events.Event
- type Logger
- type WatchConfig
Constants ¶
View Source
const ConfigEventAge = ConfigEventAgeDays * 24 * time.Hour
View Source
const ConfigEventAgeDays = 30
`ConfigEventAgeDays` is the minimal age of an event before it can become the new epoch.
View Source
const ConfigSinceEpochUpdate = ConfigSinceEpochUpdateDays * 24 * time.Hour
View Source
const ConfigSinceEpochUpdateDays = 30
`ConfigSinceEpochUpdate` is the time that must have passed since the epoch was updated before the epoch can become the new tail.
Variables ¶
This section is empty.
Functions ¶
func NewEventChain ¶
Types ¶
type Broadcaster ¶
type Broadcaster struct {
// contains filtered or unexported fields
}
func New ¶
func New( lg Logger, broadcastJ *events.Journal, id uuid.I, cfg WatchConfig, ) *Broadcaster
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) MarshalProto ¶
func (*Event) PbBroadcastEvent ¶
func (e *Event) PbBroadcastEvent() *pb.BroadcastEvent
func (*Event) UnmarshalProto ¶
Click to show internal directories.
Click to hide internal directories.