v16

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = validator.New()

Functions

func IsISO8601Date

func IsISO8601Date(fl validator.FieldLevel) bool

Types

type AuthorizationData

type AuthorizationData struct {
	IdTag     string    `json:"idTag" validate:"required,max=20"`
	IdTagInfo IdTagInfo `json:"idTagInfo,omitempty"`
}

type AuthorizeConf

type AuthorizeConf struct {
	IdTagInfo *IdTagInfo `json:"idTagInfo" validate:"required"`
}

type AuthorizeReq

type AuthorizeReq struct {
	IdTag string `json:"idTag" validate:"required,max=20"`
}

type BootNotificationConf

type BootNotificationConf struct {
	CurrentTime string `json:"currentTime" validate:"required,ISO8601date"`
	Interval    int    `json:"interval" validate:"gte=0"`
	Status      string `json:"status" validate:"required,RegistrationStatus"`
}

type BootNotificationReq

type BootNotificationReq struct {
	ChargeBoxSerialNumber   string `json:"chargeBoxSerialNumber,omitempty" validate:"max=25"`
	ChargePointModel        string `json:"chargePointModel" validate:"required,max=20"`
	ChargePointSerialNumber string `json:"chargePointSerialNumber,omitempty" validate:"max=25"`
	ChargePointVendor       string `json:"chargePointVendor" validate:"required,max=20"`
	FirmwareVersion         string `json:"firmwareVersion,omitempty" validate:"max=50"`
	Iccid                   string `json:"iccid,omitempty" validate:"max=20"`
	Imsi                    string `json:"imsi,omitempty" validate:"max=20"`
	MeterSerialNumber       string `json:"meterSerialNumber,omitempty" validate:"max=25"`
	MeterType               string `json:"meterType,omitempty" validate:"max=25"`
}

type CancelReservationConf

type CancelReservationConf struct {
	IdTagInfo IdTagInfo `json:"idTagInfo" validate:"required,CancelReservationStatus"`
}

type CancelReservationReq

type CancelReservationReq struct {
	ReservationId int `json:"reservationId" validate:"required"`
}

type ChangeAvailabilityConf

type ChangeAvailabilityConf struct {
	Status string `json:"status" validate:"required,AvailabilityStatus"`
}

type ChangeAvailabilityReq

type ChangeAvailabilityReq struct {
	ConnectorId int    `json:"connectorId" validate:"required,gte=0"`
	Type        string `json:"type" validate:"required,AvailabilityType"`
}

actions by csms

type ChangeConfigurationConf

type ChangeConfigurationConf struct {
	Status string `json:"status" validate:"required,ConfigurationStatus"`
}

type ChangeConfigurationReq

type ChangeConfigurationReq struct {
	Key   string `json:"key" validate:"required,max=50"`
	Value string `json:"value" validate:"required,max=50"`
}

type ChargingProfile

type ChargingProfile struct {
	ChargingProfileId      int              `json:"chargingProfileId" validate:"required,gte=0"`
	TransactionId          int              `json:"transactionId,omitempty"`
	StackLevel             int              `json:"stackLevel" validate:"required,gte=0"`
	ChargingProfilePurpose string           `json:"chargingProfilePurpose" validate:"required,ChargingProfilePurposeType"`
	ChargingProfileKind    string           `json:"chargingProfileKind" validate:"required,ChargingProfileKindType"`
	RecurrencyKind         string           `json:"recurrencyKind,omitempty" validate:"RecurrencyKindType"`
	ValidFrom              string           `json:"validFrom,omitempty" validate:"ISO8601date"`
	ValidTo                string           `json:"validTo,omitempty" validate:"ISO8601date"`
	ChargingSchedule       ChargingSchedule `json:"chargingSchedule" validate:"required,dive,required"`
}

type ChargingSchedule

type ChargingSchedule struct {
	Duration               int                      `json:"duration,omitempty"`
	StartSchedule          string                   `json:"startSchedule,omitempty" validate:"ISO8601date"`
	ChargingRateUnit       string                   `json:"chargingRateUnit" validate:"required,ChargingRateUnitType"`
	ChargingSchedulePeriod []ChargingSchedulePeriod `json:"chargingSchedulePeriod" validate:"required,dive,required"`
	MinChargingRate        float32                  `json:"minChargingRate,omitempty"`
}

type ChargingSchedulePeriod

type ChargingSchedulePeriod struct {
	StartPeriod  string  `json:"startPeriod" validate:"required,ISO8601date"`
	Limit        float32 `json:"limit" validate:"required,gte=0"`
	NumberPhases int     `json:"numberPhases,omitempty"`
}

type ClearCacheConf

type ClearCacheConf struct {
	Status string `json:"status" validate:"required,ClearCacheStatus"`
}

type ClearCacheReq

type ClearCacheReq struct{}

type ClearChargingProfileConf

type ClearChargingProfileConf struct {
	Status string `json:"status" validate:"required,ClearChargingProfileStatus"`
}

type ClearChargingProfileReq

type ClearChargingProfileReq struct {
	Id                     string `json:"id,omitempty"`
	ConnectorId            int    `json:"connectorId,omitempty" validate:"gte=0"`
	ChargingProfilePuropse string `json:"chargingProfilePurpose,omitempty" validate:"ChargingProfilePurpose"`
	StackLevel             int    `json:"stackLevel,omitempty" validate:"omitempty,gte=0"`
}

type DataTransferConf

type DataTransferConf struct {
	Status string `json:"status" validate:"required,DataTransferStatus"`
	Data   string `json:"data,omitempty"`
}

type DataTransferReq

type DataTransferReq struct {
	VendorId  string `json:"vendorId" validate:"required,max=255"`
	MessageId string `json:"messageId,omitempty" validate:"max=255"`
	Data      string `json:"data,omitempty"`
}

type DiagnosticsStatusNotificationConf

type DiagnosticsStatusNotificationConf struct{}

type DiagnosticsStatusNotificationReq

type DiagnosticsStatusNotificationReq struct {
	Status string `json:"status" validate:"required,DiagnosticsStatus"`
}

type FirmwareStatusNotificationConf

type FirmwareStatusNotificationConf struct{}

type FirmwareStatusNotificationReq

type FirmwareStatusNotificationReq struct {
	Status string `json:"status" validate:"required,FirmwareStatus"`
}

type GetCompositeScheduleConf

type GetCompositeScheduleConf struct {
	Status           string           `json:"status" validate:"required,GetCompositeScheduleStatus"`
	ConnectorId      int              `json:"connectorId" validate:"required,gte=0"`
	ScheduleStart    string           `json:"scheduleStart,omitempty" validate:"ISO8601date"`
	ChargingSchedule ChargingSchedule `json:"chargingSchedule,omitempty"`
}

type GetCompositeScheduleReq

type GetCompositeScheduleReq struct {
	ConnectorId      int    `json:"connectorId,omitempty" validate:"gte=0"`
	Duration         int    `json:"duration" validate:"required,gte=0"`
	ChargingRateUnit string `json:"chargingRateUnit,omitempty" validate:"ChargingRateUnit"`
}

type GetConfigurationConf

type GetConfigurationConf struct {
	ConfigurationKey map[string]string `json:"configurationKey,omitempty"`
	UnknownKey       []string          `json:"unknownKey,omitempty" validate:"max=50"`
}

type GetConfigurationReq

type GetConfigurationReq struct {
	Key []string `json:"key,omitempty" validate:"dive,max=50"`
}

type GetDiagnosticsConf

type GetDiagnosticsConf struct {
	FileName string `json:"fileName,omitempty" validate:"max=255"`
}

type GetDiagnosticsReq

type GetDiagnosticsReq struct {
	Location      string `json:"location" validate:"required"`
	Retries       int    `json:"retries,omitempty" validate:"gte=0"`
	RetryInterval int    `json:"retryInterval,omitempty" validate:"gte=0"`
	StartTime     string `json:"startTime,omitempty" validate:"ISO8601date"`
	StopTime      string `json:"stopTime,omitempty" validate:"ISO8601date"`
}

type GetLocalListVersionConf

type GetLocalListVersionConf struct {
	ListVersion int `json:"listVersion" validate:"required,gte=0"`
}

type GetLocalListVersionReq

type GetLocalListVersionReq struct{}

type HeartbeatConf

type HeartbeatConf struct {
	CurrentTime string `json:"currentTime" validate:"required,ISO8601date"`
}

type HeartbeatReq

type HeartbeatReq struct {
}

type IdTagInfo

type IdTagInfo struct {
	ExpiryDate  string `json:"expiryDate,omitempty" validate:"omitempty,ISO8601date"`
	ParentIdTag string `json:"parentIdTag,omitempty" validate:"max=20"`
	Status      string `json:"status" validate:"required,AuthorizationStatus"`
}

type MeterValue

type MeterValue struct {
	Timestamp    string       `json:"timestamp" validate:"required,ISO8601date"`
	SampledValue SampledValue `json:"sampledValue" validate:"required,dive,required"`
}

type MeterValuesConf

type MeterValuesConf struct{}

type MeterValuesReq

type MeterValuesReq struct {
	ConnectorId   int        `json:"connectorId" validate:"required,gte=0"`
	TransactionId int        `json:"transactionId"`
	MeterValue    MeterValue `json:"meterValue" validate:"required,dive,required"`
}

type RemoteStartTransactionConf

type RemoteStartTransactionConf struct {
	Status string `json:"status" validate:"required,RemoteStartStopStatus"`
}

type RemoteStartTransactionReq

type RemoteStartTransactionReq struct {
	ConnectorId     int             `json:"connectorId,omitempty" validate:"gte=0"`
	IdTag           string          `json:"idTag" validate:"required,max=20"`
	ChargingProfile ChargingProfile `json:"chargingProfile,omitempty" validate:"dive,required"`
}

type RemoteStopTransactionConf

type RemoteStopTransactionConf struct {
	Status string `json:"status" validate:"required,RemoteStartStopStatus"`
}

type RemoteStopTransactionReq

type RemoteStopTransactionReq struct {
	TransactionId int `json:"transactionId" validate:"required"`
}

type ReserveNowConf

type ReserveNowConf struct {
	Status string `json:"status" validate:"required,ReservationStatus"`
}

type ReserveNowReq

type ReserveNowReq struct {
	ConnectorId   int    `json:"connectorId" validate:"required,gte=0"`
	ExpiryDate    string `json:"expiryDate" validate:"required,ISO8601date"`
	IdTag         string `json:"idTag" validate:"required,max=20"`
	ParentIdTag   string `json:"parentIdTag,omitempty" validate:"max=20"`
	ReservationId int    `json:"reservationId" validate:"required"`
}

type ResetConf

type ResetConf struct {
	Status string `json:"status" validate:"required,ResetStatus"`
}

type ResetReq

type ResetReq struct {
	Type string `json:"type" validate:"required,ResetType"`
}

type SampledValue

type SampledValue struct {
	Value     string `json:"value" validate:"required"`
	Context   string `json:"context,omitempty" validate:"ReadingContext"`
	Format    string `json:"format,omitempty" validate:"ValueFormat"`
	Measurand string `json:"measurand,omitempty" validate:"Measurand"`
	Phase     string `json:"phase,omitempty" validate:"Phase"`
	Location  string `json:"location,omitempty" validate:"Location"`
	Unit      string `json:"unit,omitempty" validate:"UnitOfMeasure"`
}

type SendLocalListConf

type SendLocalListConf struct {
	Status string `json:"status" validate:"required,UpdateStatus"`
}

type SendLocalListReq

type SendLocalListReq struct {
	ListVersion            int                 `json:"listVersion" validate:"required,gte=0"`
	LocalAuthorizationList []AuthorizationData `json:"localAuthorizationList,omitempty" validate:"dive,required"`
	UpdateType             string              `json:"updateType" validate:"required,UpdateType"`
}

type SetChargingProfileConf

type SetChargingProfileConf struct {
	Status string `json:"status" validate:"required,ChargingProfileStatus"`
}

type SetChargingProfileReq

type SetChargingProfileReq struct {
	ConnectorId     int             `json:"connectorId" validate:"required,gte=0"`
	ChargingProfile ChargingProfile `json:"chargingProfile" validate:"required,dive,required"`
}

type StartTransactionConf

type StartTransactionConf struct {
	IdTagInfo     IdTagInfo `json:"idTagInfo" validate:"required"`
	TransactionId int       `json:"transactionId" validate:"required"`
}

type StartTransactionReq

type StartTransactionReq struct {
	ConnectorId   int    `json:"connectorId" validate:"required,gt=0"`
	IdTag         string `json:"idTag" validate:"required,max=20"`
	MeterStart    int    `json:"meterStart" validate:"required,gte=0"`
	ReservationId int    `json:"reservationId,omitempty" validate:"omitempty,gt=0"`
	Timestamp     string `json:"timestamp" validate:"required,ISO8601date"`
}

type StatusNotificationConf

type StatusNotificationConf struct{}

type StatusNotificationReq

type StatusNotificationReq struct {
	ConnectorId     int    `json:"connectorId" validate:"required,gte=0"`
	ErrorCode       string `json:"errorCode" validate:"required,ErrorCode"`
	Info            string `json:"info,omitempty" validate:"max=50"`
	Status          string `json:"status" validate:"required,ChargePointStatus"`
	Timestamp       string `json:"timestamp,omitempty" validate:"ISO8601date"`
	VendorId        string `json:"vendorId,omitempty" validate:"max=255"`
	VendorErrorCode string `json:"vendorErrorCode,omitempty" validate:"max=50"`
}

type StopTransactionConf

type StopTransactionConf struct {
	IdTagInfo IdTagInfo `json:"idTagInfo" validate:"required"`
}

type StopTransactionReq

type StopTransactionReq struct {
	IdTag           string     `json:"idTag" validate:"required,max=20"`
	MeterStop       int        `json:"meterStop" validate:"required"`
	Timestamp       string     `json:"timestamp" validate:"required,ISO8601date"`
	TransactionId   int        `json:"transactionId" validate:"required"`
	Reason          string     `json:"reason,omitempty" validate:"Reason"`
	TransactionData MeterValue `json:"transactionData,omitempty" validate:"dive,required"`
}

type TriggerMessageConf

type TriggerMessageConf struct {
	Status string `json:"status" validate:"required,TriggerMessageStatus"`
}

type TriggerMessageReq

type TriggerMessageReq struct {
	RequestedMessage string `json:"requestedMessage" validate:"required,MessageTrigger"`
	ConnectorId      int    `json:"connectorId,omitempty" validate:"gte=0"`
}

type UnlockConnectorConf

type UnlockConnectorConf struct {
	Status string `json:"status" validate:"required,UnlockStatus"`
}

type UnlockConnectorReq

type UnlockConnectorReq struct {
	ConnectorId int `json:"connectorId" validate:"required,gte=0"`
}

type UpdateFirmwareConf

type UpdateFirmwareConf struct{}

type UpdateFirmwareReq

type UpdateFirmwareReq struct {
	Location      string `json:"location" validate:"required"`
	Retries       int    `json:"retries,omitempty" validate:"gte=0"`
	RetrieveDate  string `json:"retrieveDate" validate:"required,ISO8601date"`
	RetryInterval int    `json:"retryInterval,omitempty" validate:"gte=0"`
}

Jump to

Keyboard shortcuts

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