interfaces

package
v0.0.0-...-c0e0d3a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package interfaces defines a bunch of interfaces for passing abstracted data around. It's probably a bit overkill considering the limited functionality of the code so far, so it may go away at some point...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtPoser

type AtPoser interface {
	AtPos(int) entities.Tariffs
}

type Authenticater

type Authenticater interface {
	Authenticate([]byte) error
}

Authenticater allows configuration of authentication data

type Configurator

type Configurator interface {
	Token() string
	MID() string
}

type Identifier

type Identifier interface {
	Identify([]byte) error
}

Identifier will associate an arbitrary identification

type Indexer

type Indexer interface {
	Index() entities.TariffIndex
}

type Pricer

type Pricer interface {
	Price(time.Time) float64
}

Pricer is an interface that returns a price for a given hour

type Queryer

type Queryer interface {
	Query() (interface{}, error)
}

Queryer will query in a well defined manner

type SpotPricer

type SpotPricer interface {
	SpotPrices() []entities.Elspotprice
}

type Taxer

type Taxer interface {
	Taxes() entities.Taxes
}

Jump to

Keyboard shortcuts

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