Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Config = ClientConfig{}
)
Functions ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct {
ServiceAddr string
Namespace string
BatchLinger time.Duration
MaxRequestsPerBatch int
RequestTimeout time.Duration
}
func (*ClientConfig) NewClient ¶
func (config *ClientConfig) NewClient() (oxia.AsyncClient, error)
type CommandLoop ¶
type CommandLoop struct {
// contains filtered or unexported fields
}
func NewCommandLoop ¶
func NewCommandLoop(out io.Writer) (*CommandLoop, error)
func (*CommandLoop) Add ¶
func (loop *CommandLoop) Add(query Query)
func (*CommandLoop) Complete ¶
func (loop *CommandLoop) Complete()
type OutputError ¶
type OutputError struct {
Err string `json:"error,omitempty"`
}
type OutputVersion ¶
type Query ¶
type Query interface {
Perform(client oxia.AsyncClient) Call
}
type QueryQueue ¶
type QueryQueue interface {
Add(query Query)
}
Click to show internal directories.
Click to hide internal directories.