client

package
v0.0.0-...-76cd303 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingCookie = errors.New("missing cookie in response")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func New

func New(host, username string, options ...Option) *Client

New returns a new Client

func (*Client) Login

func (c *Client) Login() error

type Option

type Option func(*Client)

func WithHttp

func WithHttp() Option

WithHttp sets the scheme to http

func WithNoVerify

func WithNoVerify() Option

WithNoVerify disables TLS certificate verification

func WithPassword

func WithPassword(password string) Option

func WithPort

func WithPort(port int) Option

WithPort sets the port

Jump to

Keyboard shortcuts

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