Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Transport DatamanClientTransport
}
TODO: support per-query config? TODO support switching config in-flight? If so then we'll need to store a pointer to it in the context -- which would require implementing one ourself
func (*Client) DoQuery ¶
DoQuery will execute a given query. This will return a (result, error) -- where the error is any transport level error (NOTE: any response errors due to the query will *not* be reported in this error, they will be in the normal Result.Error location)
func (*Client) DoStreamQuery ¶
DoStreamQuery will execute a given query and stream the results back.
type DatamanClientTransport ¶
type DatamanClientTransport interface { DoQuery(context.Context, *query.Query) (*query.Result, error) DoStreamQuery(context.Context, *query.Query) (*query.ResultStream, error) }
Interface for all dataman client access This includes clients that access the datasource directly etc.
Click to show internal directories.
Click to hide internal directories.