Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidType = fmt.Errorf("event type is invalid")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { WithType(t Type) builder WithData(data []byte) builder WithMetadata(data Metadata) builder BuildRead() (ev ByteReadEvent, err error) BuildStore() (ev WriteEvent[[]byte], err error) }
func NewBuilder ¶
func NewBuilder() Builder
type ByteReadEvent ¶
type ByteWriteEvent ¶
type ByteWriteEvent WriteEvent[[]byte]
type Metadata ¶
type ReadEventWAcc ¶
type WriteEvent ¶
type WriteEvent[T any] struct { // contains filtered or unexported fields }
func (*WriteEvent[T]) Close ¶
func (e *WriteEvent[T]) Close(status store.WriteStatus)
func (*WriteEvent[T]) Done ¶
func (e *WriteEvent[T]) Done() <-chan store.WriteStatus
func (*WriteEvent[T]) Event ¶
func (e *WriteEvent[T]) Event() *Event[T]
func (*WriteEvent[T]) StatusChan ¶
func (e *WriteEvent[T]) StatusChan() chan store.WriteStatus
func (*WriteEvent[T]) Store ¶
func (e *WriteEvent[T]) Store() *store.WriteEvent
type WriteEventReadStatus ¶
type WriteEventReadStatus[T any] interface { Event() *Event[T] Done() <-chan store.WriteStatus Close(store.WriteStatus) Store() *store.WriteEvent StatusChan() chan store.WriteStatus }
func Map ¶
func Map[OT, NT any](e WriteEventReadStatus[OT], f func(OT) NT) WriteEventReadStatus[NT]
func NewWriteEvent ¶
func NewWriteEvent[T any](e Event[T]) WriteEventReadStatus[T]
Click to show internal directories.
Click to hide internal directories.