client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HatchetDefaultQueueName = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewTemporalClient

func NewTemporalClient(opts ...ClientOpt) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) GetClient

func (c *Client) GetClient(queueName string) (client.Client, error)

func (*Client) GetDefaultQueueName

func (c *Client) GetDefaultQueueName() string

type ClientOpt

type ClientOpt func(*ClientOptions)

func WithCertFiles

func WithCertFiles(clientCertFile, clientKeyFile string) ClientOpt

func WithCerts

func WithCerts(clientCert, clientKey []byte) ClientOpt

func WithDefaultQueueName

func WithDefaultQueueName(queueName string) ClientOpt

func WithHostPort

func WithHostPort(hostPort string) ClientOpt

func WithNamespace

func WithNamespace(namespace string) ClientOpt

func WithRootCA

func WithRootCA(rootCA []byte) ClientOpt

func WithRootCAFile

func WithRootCAFile(rootCAFile string) ClientOpt

func WithTLSServerName

func WithTLSServerName(tlsServerName string) ClientOpt

type ClientOptions

type ClientOptions struct {
	DefaultQueueName string

	HostPort  string
	Namespace string

	ClientKey     []byte
	ClientKeyFile string

	ClientCert     []byte
	ClientCertFile string

	RootCA     []byte
	RootCAFile string

	TLSServerName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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