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)
Click to show internal directories.
Click to hide internal directories.