Documentation
¶
Overview ¶
Package logspecclient implements a client for the akutan/logspec API.
Index ¶
- type Log
- func (aLog *Log) Append(ctx context.Context, data [][]byte) ([]blog.Index, error)
- func (aLog *Log) AppendSingle(ctx context.Context, data []byte) (blog.Index, error)
- func (aLog *Log) Discard(ctx context.Context, firstIndex blog.Index) error
- func (aLog *Log) Disconnect()
- func (aLog *Log) Info(ctx context.Context) (*blog.Info, error)
- func (aLog *Log) InfoStream(ctx context.Context, infoCh chan<- *blog.Info) error
- func (aLog *Log) Read(ctx context.Context, nextIndex blog.Index, entriesCh chan<- []blog.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a client to the logspec API.
func (*Log) AppendSingle ¶
AppendSingle implements the method defined by blog.AkutanLog.
func (*Log) Disconnect ¶
func (aLog *Log) Disconnect()
Disconnect implements the method declared in blog.Disconnector.
func (*Log) InfoStream ¶
InfoStream implements the method declared in blog.AkutanLog.
Click to show internal directories.
Click to hide internal directories.