client

package
v1.7.0-test4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Release added in v1.3.0

func Release() (*selfupdate.Release, error)

func Update added in v1.3.0

func Update(release *selfupdate.Release) error

Types

type Client

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

Config configures variables for the client

func New

func New(options ...Option) (*Client, error)

New creates client with given options

func (*Client) Health added in v1.4.0

func (c *Client) Health(ctx context.Context) error

func (*Client) Run

func (c *Client) Run(ctx context.Context) error

Runs client until context is closed

type Option

type Option func(*Client)

func WithCertPool added in v1.6.0

func WithCertPool(pool *x509.CertPool) Option

func WithHealthWaitTime

func WithHealthWaitTime(duration time.Duration) Option

func WithLogger added in v1.6.0

func WithLogger(logger *log.Logger) Option

func WithMTLS added in v1.6.0

func WithMTLS(cert tls.Certificate) Option

func WithPassword

func WithPassword(password string) Option

func WithProxy added in v1.0.0

func WithProxy(proxy string) Option

func WithRunWaitTime

func WithRunWaitTime(duration time.Duration) Option

func WithURL

func WithURL(url string) Option

func WithUsername

func WithUsername(username string) Option

Jump to

Keyboard shortcuts

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