Documentation ¶
Index ¶
- Variables
- func NewGRPCServer(config *Config, opts ...grpc.ServerOption) (*grpc.Server, error)
- func NewHTTPServer(addr string) *http.Server
- type Authorizer
- type CommitLog
- type Config
- type ConsumeRequest
- type ConsumeResponse
- type GetServerer
- 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 GetServerer GetServerer }
type ConsumeRequest ¶
type ConsumeRequest struct {
Offset uint64 `json:"offset"`
}
type ConsumeResponse ¶
type ConsumeResponse struct {
Record Record `json:"record"`
}
type GetServerer ¶
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.