Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default response content type for pull & push queries // In the case of a successful query, if the content type is application/vnd.ksqlapi.delimited.v1, // the results are returned as a header JSON object followed by zero or more JSON arrays that are delimited by newlines. ContentTypeDelim = "application/vnd.ksqlapi.delimited.v1; charset=utf-8" // Default serialization format for requests and responses. ContentTypeDefault = "application/vnd.ksql.v1+json; charset=utf-8" // EndpointRunStreamQuery is used to run push and pull queries. // These endpoints are only available when using HTTP 2. EndpointRunStreamQuery string = "/query-stream" // EndpointCloseQuery used to terminates a push query. EndpointCloseQuery string = "/close-query" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client BasicAuth *BasicAuth // contains filtered or unexported fields }
func (*Client) CloseQuery ¶
CloseQuery terminates a query.
func (*Client) Pull ¶
func (c *Client) Pull(ctx context.Context, q *QueryRequest) (*QueryResponse, []Row, error)
func (*Client) Push ¶
func (c *Client) Push(ctx context.Context, q *QueryRequest, cb func(qr *QueryResponse, row Row)) error
type QueryRequest ¶
type QueryResponse ¶
Click to show internal directories.
Click to hide internal directories.