Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit func() error
Commit drops a logged event once its operation has succeeded.
type EventHandler ¶
type Hydro ¶
type Hydro struct {
// contains filtered or unexported fields
}
Hydro is the simplest wal implementation.
func (*Hydro) Register ¶
func (h *Hydro) Register(handler EventHandler)
type HydroEvent ¶
type HydroEvent struct {
ID uint64 `json:"ID"`
Type string `json:"type"`
Item []byte `json:"item"`
}
HydroEvent indicates a log event.
func NewHydroEvent ¶
func NewHydroEvent(ID uint64, typ string, item []byte) *HydroEvent
func (HydroEvent) Encode ¶
func (e HydroEvent) Encode() ([]byte, error)
func (HydroEvent) Key ¶
func (e HydroEvent) Key() []byte
Click to show internal directories.
Click to hide internal directories.