client

package
v0.0.0-...-40aaa15 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 6 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 {
	*resty.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Option) (*Client, error)

func (*Client) Gateways

func (c *Client) Gateways() gateway.Service

func (*Client) Plants

func (c *Client) Plants() plant.Service

type Option

type Option func(*Client)

func WithBaseURL

func WithBaseURL(host string) Option

func WithEmailPassword

func WithEmailPassword(email, password string) Option

func WithToken

func WithToken(token string) Option

type UnsuccessfulLoginError

type UnsuccessfulLoginError struct {
	Message string
}

func (UnsuccessfulLoginError) Error

func (e UnsuccessfulLoginError) Error() string

Jump to

Keyboard shortcuts

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