go-micro: github.com/micro/go-micro/sync/event Index | Files

package event

import "github.com/micro/go-micro/sync/event"

Package event provides a distributed log interface


Package Files


type Event Uses

type Event interface {
    // Log retrieves the log with an id/name
    Log(id string) (Log, error)

Event provides a distributed log interface

type Log Uses

type Log interface {
    // Close the log handle
    Close() error
    // Log ID
    Id() string
    // Read will read the next record
    Read() (*Record, error)
    // Go to an offset
    Seek(offset int64) error
    // Write an event to the log
    Write(*Record) error

Log is an individual event log

type Record Uses

type Record struct {
    Metadata map[string]interface{}
    Data     []byte

Updated 2019-05-31. Refresh now. Tools for package owners.