mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
remove sync event
This commit is contained in:
parent
57b758db7e
commit
b979db6d9d
@ -1,27 +0,0 @@
|
|||||||
// Package event provides a distributed log interface
|
|
||||||
package event
|
|
||||||
|
|
||||||
// Event provides a distributed log interface
|
|
||||||
type Event interface {
|
|
||||||
// Log retrieves the log with an id/name
|
|
||||||
Log(id string) (Log, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Log is an individual event log
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
type Record struct {
|
|
||||||
Metadata map[string]interface{}
|
|
||||||
Data []byte
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user