client

package
v0.0.0-...-87cf5a2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg Config) (*Client, error)

type Config

type Config struct {
	Endpoint string

	Insecure bool

	// DialTimeout is the timeout for failing to establish a connection.
	DialTimeout time.Duration

	// Context is the default client context; it can be used to cancel grpc dial out and
	// other operations that do not have an explicit context.
	Context context.Context
}

type ProxyPool

type ProxyPool interface {
	GetProxy(context.Context, *v2.GetProxyRequest) (*v2.Proxy, error)
	DeleteProxy(context.Context, *v2.Proxy) error
}

func NewProxyPool

func NewProxyPool(c *Client) ProxyPool

type ValidateStreamResponse

type ValidateStreamResponse struct {
	ValidateRequest *v2.Proxy
	Created         bool
	Canceled        bool
	Err             error
	// contains filtered or unexported fields
}

type Validator

type Validator interface {
	ValidateStream(ctx context.Context, name string, validatedProxy <-chan *v2.Proxy) <-chan *ValidateStreamResponse
	Close() error
}

func NewValidator

func NewValidator(c *Client) Validator

Jump to

Keyboard shortcuts

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