sparte

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sparte

type Sparte int

Sparte contains different divisions of typical utilities.

const (
	// STROM means power/electricity
	STROM      Sparte = iota + 1
	GAS               // GAS means gas
	FERNWAERME        // FERNWAERME means long-distance heat
	NAHWAERME         // NAHWAERME means local heat
	WASSER            // WASSER means water
	ABWASSER          // ABWASSER means waste water
)

func (Sparte) MarshalJSON

func (r Sparte) MarshalJSON() ([]byte, error)

MarshalJSON is generated so Sparte satisfies json.Marshaler.

func (*Sparte) Scan added in v0.0.48

func (r *Sparte) Scan(value interface{}) error

Scan - Implement sql scanner interface to read the json representation from the DB

func (Sparte) String

func (i Sparte) String() string

func (*Sparte) UnmarshalJSON

func (r *Sparte) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so Sparte satisfies json.Unmarshaler.

func (Sparte) Value added in v0.0.48

func (r Sparte) Value() (driver.Value, error)

Value sets the value that is written to a database, for that we just use the json representation

Jump to

Keyboard shortcuts

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