fetch

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHTTP        = errors.New("unexpected HTTP error")
	ErrNotModified = errors.New("not modified")
	ErrNoURL       = errors.New("please configure your Nightscout URL")
)

Functions

func BuildURL

func BuildURL(conf *config.Config) (*url.URL, error)

func BuildURLWithToken

func BuildURLWithToken(conf *config.Config) (*url.URL, error)

Types

type Fetch

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

func NewFetch

func NewFetch(conf *config.Config) *Fetch

func (*Fetch) Do

func (*Fetch) Reset

func (f *Fetch) Reset()

func (*Fetch) UpdateURL

func (f *Fetch) UpdateURL() error

Jump to

Keyboard shortcuts

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