htb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TARIFF_UID_TEMPLATE = "htb.solutions-%v"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionsDto

type ConditionsDto struct {
	Rate *string `json:"rate"`
}

type HtbRepository

type HtbRepository interface{}

type HtbService

type HtbService struct {
	Repository           HtbRepository
	HTTPRequester        transportation.HTTPRequester
	ConnectorRepository  connector.ConnectorRepository
	DataImportRepository dataimport.DataImportRepository
	ElementResolver      *element.ElementResolver
	TariffRepository     tariff.TariffRepository
	// contains filtered or unexported fields
}

func NewService

func NewService(repositoryService *db.RepositoryService) *HtbService

func (*HtbService) Run

func (r *HtbService) Run(ctx context.Context, credential db.Credential, lastUpdated time.Time)

func (*HtbService) StartService

func (r *HtbService) StartService(shutdownCtx context.Context, waitGroup *sync.WaitGroup)

type PriceInformationDto

type PriceInformationDto struct {
	EvseID     string         `json:"evse_id"`
	Conditions *ConditionsDto `json:"conditions"`
}

func UnmarshalDto

func UnmarshalDto(body io.ReadCloser) ([]*PriceInformationDto, error)

Jump to

Keyboard shortcuts

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