Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) ConnectorServiceClient() runtimev1.ConnectorServiceClient
- func (c *Client) ListResources(ctx context.Context, req *runtimev1.ListResourcesRequest, ...) (*runtimev1.ListResourcesResponse, error)
- func (c *Client) QueryServiceClient() runtimev1.QueryServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
runtimev1.RuntimeServiceClient
// contains filtered or unexported fields
}
Client connects to a runtime server. It's a thin wrapper around the generated gRPC client for proto/rill/runtime/v1.
func New ¶
New creates a new Client and opens a connection. You must call Close() when done with the client.
func (*Client) ConnectorServiceClient ¶ added in v0.78.0
func (c *Client) ConnectorServiceClient() runtimev1.ConnectorServiceClient
ConnectorServiceClient returns a ConnectorServiceClient using the same connection.
func (*Client) ListResources ¶ added in v0.88.3
func (c *Client) ListResources(ctx context.Context, req *runtimev1.ListResourcesRequest, opts ...grpc.CallOption) (*runtimev1.ListResourcesResponse, error)
ListResources retrieves all pages of resources.
func (*Client) QueryServiceClient ¶ added in v0.78.0
func (c *Client) QueryServiceClient() runtimev1.QueryServiceClient
QueryServiceClient returns a QueryServiceClient using the same connection.
Click to show internal directories.
Click to hide internal directories.