config

package
v0.0.0-...-bc49051 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	apputil.Config `yaml:",inline"`
	Temporal       Temporal `yaml:"temporal"`
}

func (*Config) Resolve

func (c *Config) Resolve(ctx context.Context) error

Resolve resolves the config.

type Temporal

type Temporal struct {
	HostPort              string           `yaml:"hostport"`
	Namespace             string           `yaml:"namespace"`
	Identity              string           `yaml:"identity"`
	Credentials           certutil.KeyPair `yaml:"credentials"`
	TLSServerName         string           `yaml:"tlsServerName"`
	TLSInsecureSkipVerify bool             `yaml:"tlsInsecureSkipVerify"`
}

Temporal represent options for connecting to a temporal server.

This is used by both a worker and servers submitting work tasks.

func (Temporal) Client

func (t Temporal) Client() (client.Client, error)

Client returns a temporal client for the config.

func (*Temporal) Resolve

func (t *Temporal) Resolve(ctx context.Context) error

Jump to

Keyboard shortcuts

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