client

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	pb.KeyAPIClient
	// contains filtered or unexported fields
}

Client can be used to make calls to a K1 service.

func NewClient

func NewClient(endpoint string, opts ...Option) (*Client, error)

NewClient creates a new K1 client with the given options.

func (*Client) Close

func (c *Client) Close() error

Close closes all connections to the server.

type Option

type Option func(*Client)

Option can be used to configure the behaviour of a Client.

func WithTransportCredentials

func WithTransportCredentials(credentials credentials.TransportCredentials) Option

WithTransportCredentials returns an Option which configures the connection level security credentials (e.g. TLS).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL