Documentation
¶
Index ¶
- func NewCreateTariffParams(tariffDto *dto.TariffDto) db.CreateTariffParams
- type TariffResolver
- func (r *TariffResolver) CreateTariffDto(ctx context.Context, tariff db.Tariff) *dto.TariffDto
- func (r *TariffResolver) CreateTariffPushListDto(ctx context.Context, tariffs []db.Tariff) []*dto.TariffDto
- func (r *TariffResolver) DeleteTariff(rw http.ResponseWriter, request *http.Request)
- func (r *TariffResolver) GetLastTariffByIdentity(ctx context.Context, credentialID *int64, countryCode *string, partyID *string) (db.Tariff, error)
- func (r *TariffResolver) GetTariff(rw http.ResponseWriter, request *http.Request)
- func (r *TariffResolver) ReplaceTariffByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, ...) *db.Tariff
- func (r *TariffResolver) ReplaceTariffsByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, ...)
- func (r *TariffResolver) SyncByIdentifier(ctx context.Context, credential db.Credential, fullSync bool, ...)
- func (r *TariffResolver) TariffContext(syncService *sync.SyncService) func(http.Handler) http.Handler
- func (r *TariffResolver) UnmarshalPullDto(body io.ReadCloser) (*dto.OcpiTariffsDto, error)
- func (r *TariffResolver) UnmarshalPushDto(body io.ReadCloser) (*dto.TariffDto, error)
- func (r *TariffResolver) UpdateTariff(rw http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateTariffParams ¶
func NewCreateTariffParams(tariffDto *dto.TariffDto) db.CreateTariffParams
Types ¶
type TariffResolver ¶
type TariffResolver struct { Repository tariff.TariffRepository OcpiService *transportation.OcpiService DisplayTextResolver *displaytext.DisplayTextResolver ElementResolver *element.ElementResolver EnergyMixResolver *energymix.EnergyMixResolver TariffRestrictionResolver *tariffrestriction.TariffRestrictionResolver VersionDetailResolver *versiondetail.VersionDetailResolver }
func NewResolver ¶
func NewResolver(repositoryService *db.RepositoryService, services *service.ServiceResolver) *TariffResolver
func (*TariffResolver) CreateTariffDto ¶
func (*TariffResolver) CreateTariffPushListDto ¶
func (*TariffResolver) DeleteTariff ¶
func (r *TariffResolver) DeleteTariff(rw http.ResponseWriter, request *http.Request)
func (*TariffResolver) GetLastTariffByIdentity ¶
func (*TariffResolver) GetTariff ¶
func (r *TariffResolver) GetTariff(rw http.ResponseWriter, request *http.Request)
func (*TariffResolver) ReplaceTariffByIdentifier ¶
func (*TariffResolver) ReplaceTariffsByIdentifier ¶
func (r *TariffResolver) ReplaceTariffsByIdentifier(ctx context.Context, credential db.Credential, countryCode *string, partyID *string, cdrID *int64, tariffsDto []*dto.TariffDto)
func (*TariffResolver) SyncByIdentifier ¶ added in v0.3.1
func (r *TariffResolver) SyncByIdentifier(ctx context.Context, credential db.Credential, fullSync bool, lastUpdated *time.Time, countryCode *string, partyID *string)
func (*TariffResolver) TariffContext ¶
func (r *TariffResolver) TariffContext(syncService *sync.SyncService) func(http.Handler) http.Handler
func (*TariffResolver) UnmarshalPullDto ¶
func (r *TariffResolver) UnmarshalPullDto(body io.ReadCloser) (*dto.OcpiTariffsDto, error)
func (*TariffResolver) UnmarshalPushDto ¶
func (r *TariffResolver) UnmarshalPushDto(body io.ReadCloser) (*dto.TariffDto, error)
func (*TariffResolver) UpdateTariff ¶
func (r *TariffResolver) UpdateTariff(rw http.ResponseWriter, request *http.Request)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.