model

package
v0.0.0-...-0abc3cd Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClient signifies client error
	ErrClient error
	// ErrInvalidInput signifies invalid input
	ErrInvalidInput error
)

Functions

func C2F

func C2F(c float64) (f float64, err error)

C2F converts degrees celsius to degrees fahrenheit

func F2C

func F2C(f float64) (c float64, err error)

F2C converts degrees fahrenheit to degrees celsius

func Health

func Health() (status bool, err error)

Health checks if everything's fine

func SetClient

func SetClient(cli Client)

SetClient sets client interface

Types

type Client

type Client interface {
	Health() (status bool, err error)
	Shutdown() (err error)
	C2F(c float64) (f float64, err error)
	F2C(f float64) (c float64, err error)
}

Client is client interface

Jump to

Keyboard shortcuts

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