Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) GetObject(ctx context.Context, in *eventgate.ObjectRef) error
- func (c *Client) SearchEvents(ctx context.Context, in *eventgate.SearchOpts) (*eventgate.Events, error)
- func (c *Client) SetObject(ctx context.Context, in *eventgate.Object) error
- func (c *Client) StreamEvents(ctx context.Context, in *eventgate.StreamOpts, ...) error
- type Opt
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a eventgate gRPC client
func (*Client) SearchEvents ¶ added in v0.1.0
func (c *Client) SearchEvents(ctx context.Context, in *eventgate.SearchOpts) (*eventgate.Events, error)
SearchEvents returns an array of immutable historical events from a given channel.
type Opt ¶
type Opt func(o *Options)
Opt is a single configuration option
func WithIDToken ¶
WithIDToken makes the client use the oauth id token(if it exists) instead of the oauth access token
func WithLogging ¶
WithLogging registers a logging middleware
func WithTokenSource ¶
func WithTokenSource(tokenSource oauth2.TokenSource) Opt
WithTokenSource uses oauth token add an authorization header to every outbound request
func WithTransportCreds ¶
func WithTransportCreds(creds credentials.TransportCredentials) Opt
WithTransportCreds adds transport credentials to the client
Click to show internal directories.
Click to hide internal directories.