factory

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ANSClientFactory added in v1.10.1

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

func NewANSClientFactory added in v1.10.1

func NewANSClientFactory(connectionFactory ConnectionFactory) *ANSClientFactory

func (*ANSClientFactory) NewClient added in v1.10.1

func (f *ANSClientFactory) NewClient() (client.Client, error)

type ANSConnectionFactory added in v1.16.0

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

func NewANSConnectionFactory added in v1.16.0

func NewANSConnectionFactory(opts ...ANSConnectionFactoryOption) *ANSConnectionFactory

func (*ANSConnectionFactory) NewConnection added in v1.16.0

func (f *ANSConnectionFactory) NewConnection() (connection.Connection, error)

type ANSConnectionFactoryOption added in v1.16.0

type ANSConnectionFactoryOption func(f *ANSConnectionFactory)

func WithUserAgent

func WithUserAgent(userAgent string) ANSConnectionFactoryOption

type ClientFactory

type ClientFactory interface {
	NewClient() (client.Client, error)
}

type ConnectionFactory added in v1.16.0

type ConnectionFactory interface {
	NewConnection() (connection.Connection, error)
}

Jump to

Keyboard shortcuts

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