Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*client.DefaultClient
}
Client denotes a global query client
type SSEClient ¶
type SSEClient struct {
*client.DefaultClient
// contains filtered or unexported fields
}
SSEClient is a global query client capable of streaming updates
func NewSSE ¶
func NewSSE(addr string, onUpdate, onFinish StreamingUpdate, onKeepalive StreamingKeepalive, opts ...client.Option) *SSEClient
NewSSE creates a new streaming client for the global-query API
func NewSSEFromConfig ¶
NewFromConfig creates the client based on cfg, sending keepalive signals on the provided channel
type StreamingKeepalive ¶
StreamingKeepalive is a function which operates on a received keepalive
Click to show internal directories.
Click to hide internal directories.