Documentation ¶
Index ¶
- Variables
- func NewGRPCServer(config *Config, grpcOpts ...grpc.ServerOption) (*grpc.Server, error)
- func NewHTTPServer(addr string) *http.Server
- type Authorizer
- type CommitLog
- type Config
- type ConsumeRequest
- type ConsumeResponse
- type GetServer
- type Log
- type ProduceRequest
- type ProduceResponse
- type Record
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOffsetNotFound = fmt.Errorf("offset not found")
Functions ¶
func NewGRPCServer ¶
func NewHTTPServer ¶
Types ¶
type Authorizer ¶
type Config ¶
type Config struct { CommitLog CommitLog Authorizer Authorizer GetServer GetServer }
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.