Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOffsetNotFound = fmt.Errorf("offset not found")
Functions ¶
func NewGRPCServer ¶ added in v0.4.1
NewGRPCServer provides a way to instantiate the service, create a gRPC server, and register the service with the server. This gives the user a server that just needs a listener.
func NewHTTPServer ¶
Types ¶
type Authorizer ¶ added in v0.5.2
Authorizer uses an interface to allow the service to use any authorization implementation, same as CommitLog
type CommitLog ¶ added in v0.4.1
CommitLog uses an interface to allow the service to use any log implementation that satisfies the log interface.
type Config ¶ added in v0.4.1
type Config struct { CommitLog CommitLog Authorizer Authorizer }
type ConsumeRequest ¶
type ConsumeRequest struct {
Offset uint64 `json:"offset"`
}
type ConsumeResponse ¶
type ConsumeResponse struct {
Record Record `json:"record"`
}
type ProduceRequest ¶
type ProduceRequest struct {
Record Record `json:"record"`
}
type ProduceResponse ¶
type ProduceResponse struct {
Offset uint64 `json:"offset"`
}
Click to show internal directories.
Click to hide internal directories.