client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate added in v0.5.0

type Certificate struct {
	CAFile             string `yaml:"ca_file"`
	CertFile           string `yaml:"cert_file"`
	KeyFile            string `yaml:"key_file"`
	InsecureSkipVerify bool   `yaml:"insecure_skip_verify"`
}

func (*Certificate) Config added in v0.6.0

func (c *Certificate) Config(address, network string) (*tls.Config, error)

type Client

type Client interface {
	Call(ctx context.Context, handler func(ctx context.Context, w io.Writer, r io.Reader) error) error
}

func New added in v0.6.0

func New(c Config) (Client, error)

type Config added in v0.6.0

type Config struct {
	Network     string
	Address     string
	Certificate *Certificate
	MaxConns    uint64
}

func (Config) Resolve added in v0.6.0

func (c Config) Resolve() (addr fmt.Stringer, err error)

Jump to

Keyboard shortcuts

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