client

package
v0.0.0-...-66c7a0d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	api.PGSidecarServiceClient
}

Client is the pg-sidecar-service client

func NewClient

func NewClient(OptFuncs ...OptFunc) (*Client, error)

NewClient takes optional functional client args and returns a new Client

type OptFunc

type OptFunc func(c *Opts)

OptFunc is a Client functional argument

func WithConTimeout

func WithConTimeout(timeout time.Duration) OptFunc

WithConTimeout configures the timeout duration

func WithHost

func WithHost(host string) OptFunc

WithHost configures the service host

func WithPort

func WithPort(port int) OptFunc

WithPort configures the service port

func WithTLSCertPath

func WithTLSCertPath(path string) OptFunc

WithTLSCertPath configures the mTLS cert path

func WithTLSKeyPath

func WithTLSKeyPath(path string) OptFunc

WithTLSKeyPath configures the mTLS key path

func WithTLSRootCAPath

func WithTLSRootCAPath(path string) OptFunc

WithTLSRootCAPath configures the mTLS root CA cert path

type Opts

type Opts struct {
	// contains filtered or unexported fields
}

Opts are the pg-sidecar-server's gRPC client's options

func (*Opts) Address

func (o *Opts) Address() string

Address returns the pg-sidecar-server address from the host and port

Jump to

Keyboard shortcuts

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