Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Close(timeout time.Duration) error
- func (c *Client) ConfigureSampler(ctx context.Context, samplerResource, samplerName string, ...) error
- func (c *Client) Connect(serverAddr string) error
- func (c *Client) Errors() chan error
- func (c *Client) ListSamplers(ctx context.Context) ([]*control.Sampler, error)
- func (c *Client) State() State
- func (c *Client) StateChanges() chan State
- func (c *Client) UID() control.ClientUID
- type Option
- func WihKeepAliveMaxPeriod(t time.Duration) Option
- func WithAuthBearer(token string) Option
- func WithBlock() Option
- func WithConnTimeout(t time.Duration) Option
- func WithLogger(l logging.Logger) Option
- func WithResponseTimeout(t time.Duration) Option
- func WithServerReqsQueueLen(l int) Option
- func WithTLS() Option
- func WithTLSCACert(path string) Option
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectionFailure = stream.ErrConnectionFailure
View Source
var ErrRegistrationFailure = stream.ErrRegistrationFailure
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConfigureSampler ¶
func (c *Client) ConfigureSampler(ctx context.Context, samplerResource, samplerName string, update *control.SamplerConfigUpdate) error
ConfigureSampler sends a configuration to a sampler
func (*Client) ListSamplers ¶
func (*Client) StateChanges ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WihKeepAliveMaxPeriod ¶
func WithAuthBearer ¶
func WithConnTimeout ¶
func WithLogger ¶
func WithResponseTimeout ¶
func WithServerReqsQueueLen ¶
func WithTLSCACert ¶
Click to show internal directories.
Click to hide internal directories.