rs

package
v0.0.0-...-aba061b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient provides an http.Client

type Handler

type Handler struct {
	ReadRain func(ctx context.Context) (Rain, error)
}

func New

func New(serveURL string, cl HTTPClient) Handler

type Rain

type Rain struct {
	IsRaining bool
	Value     int
}

type ReadRainFunc

type ReadRainFunc func(ctx context.Context) (Rain, error)

func ReadRain

func ReadRain(cl client) ReadRainFunc

Jump to

Keyboard shortcuts

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