api

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOpt

type AuthOpt func(o *authOptions)

func WithProtocolContext

func WithProtocolContext(username string, password string) AuthOpt

func WithTransportContext

func WithTransportContext(encrypted bool, remoteAddr string, cert *x509.Certificate) AuthOpt

type Client

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

func New

func New(addr string) (*Client, error)

func (*Client) Authenticate

func (c *Client) Authenticate(ctx context.Context, a ...AuthOpt) (bool, string, error)

func (*Client) Close

func (c *Client) Close() error

Jump to

Keyboard shortcuts

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