Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "consensus.db"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeReceiver ¶
type Service ¶
type Service interface {
// AddLog adds new log db
AddLog(ctx context.Context, log consensus.Log) (err error)
// DeleteLog deletes the log
DeleteLog(ctx context.Context, logId string) error
// AddRecord adds new record to existing log
// returns consensuserr.ErrConflict if record didn't match or log not found
AddRecord(ctx context.Context, logId string, record consensus.Record) (err error)
// FetchLog gets log by id
FetchLog(ctx context.Context, logId string) (log consensus.Log, err error)
// SetChangeReceiver sets the receiver for updates, it must be called before app.Run stage
SetChangeReceiver(receiver ChangeReceiver) (err error)
app.ComponentRunnable
}
Click to show internal directories.
Click to hide internal directories.