Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) IngestBatch(ctx context.Context, batch []Event) error
- func (c *Client) IngestBatchWithTable(ctx context.Context, batch []Event, tables []string) error
- func (c *Client) IngestCSV(ctx context.Context, data []byte) error
- func (c *Client) IngestORC(ctx context.Context, data []byte) error
- func (c *Client) IngestParquet(ctx context.Context, data []byte) error
- func (c *Client) IngestURL(ctx context.Context, url string) error
- type Event
- type Option
- func WithCircuit(timeout time.Duration, maxConcurrent, errorThresholdPercent int) Option
- func WithCredential(credentials credentials.TransportCredentials) Option
- func WithLoadBalancer(name string) Option
- func WithMaxMsgSize(maxSendMsgSize, maxRecvMsgSize int) Option
- func WithNetwork(dialTimeout time.Duration) Option
- func WithNonBlock() Option
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnableToConnect is error when client is unable connect to rpc server ErrUnableToConnect = errors.New("unable to connect Talaria server") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for Talaria.
func (*Client) IngestBatch ¶
IngestBatch sends a batch of events to Talaria server.
func (*Client) IngestBatchWithTable ¶ added in v1.6.1
IngestBatch sends a batch of events to Talaria server.
func (*Client) IngestCSV ¶ added in v1.1.6
IngestCSV sends a set of comma-separated file to Talaria to ingest.
func (*Client) IngestORC ¶ added in v1.1.6
IngestORC sends an ORC-encoded file to Talaria to ingest.
func (*Client) IngestParquet ¶ added in v1.2.7
IngestParquet sends an Parquet-encoded file to Talaria to ingest.
type Option ¶
type Option func(client *Client)
Option is a functional parameter used to configure the client.
func WithCircuit ¶
WithCircuit specifies the configuration for the circuit breaker.
func WithCredential ¶
func WithCredential(credentials credentials.TransportCredentials) Option
WithCredential specfies the configuration for the gRPC credentials based on TLS with this one being set, connection will be created in secure manner
func WithLoadBalancer ¶ added in v1.2.5
WithLoadBalancer specifies the load balancer to use
func WithMaxMsgSize ¶ added in v1.6.1
func WithNetwork ¶
WithNetwork specifies the configuration for a connection.