Documentation
¶
Overview ¶
Package ocpi implements the OCPI API for interacting with eMSPs (MOs)
Index ¶
- Constants
- Variables
- func CorrelationIDMiddleware(next http.Handler) http.Handler
- func ErrInternalError(err error) render.Renderer
- func ErrInvalidRequest(err error) render.Renderer
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewTokenAuthenticationFunc(engine store.Engine) openapi3filter.AuthenticationFunc
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ActiveChargingProfile
- type AdditionalGeoLocation
- type Api
- type AuthorizationInfo
- type AuthorizationInfoAllowed
- type BusinessDetails
- type CDR
- type CDRAuthMethod
- type CancelReservation
- type CdrDimension
- type CdrDimensionType
- type CdrLocation
- type CdrLocationConnectorFormat
- type CdrLocationConnectorPowerType
- type CdrLocationConnectorStandard
- type CdrToken
- type CdrTokenType
- type ChargingPeriod
- type ChargingPreferences
- type ChargingPreferencesProfileType
- type ChargingProfile
- type ChargingProfileChargingRateUnit
- type ChargingProfilePeriod
- type ChargingProfileResponse
- type ChargingProfileResponseResult
- type ChiServerOptions
- type CommandResponse
- type CommandResponseResult
- type CommandResult
- type CommandResultResult
- type Connector
- type ConnectorFormat
- type ConnectorPowerType
- type ConnectorStandard
- type ContextKey
- type Credentials
- type CredentialsRole
- type CredentialsRoleRole
- type DeleteClientOwnedTariffParams
- type DeleteCredentialsParams
- type DeleteReceiverChargingProfileParams
- type DisplayText
- type Endpoint
- type EndpointRole
- type EnergyContract
- type EnergyMix
- type EnergySource
- type EnergySourceSource
- type EnvironmentalImpact
- type EnvironmentalImpactCategory
- type ErrResponse
- type Evse
- type EvseCapabilities
- type EvseParkingRestrictions
- type EvseStatus
- type ExceptionalPeriod
- type GenericChargingProfileResult
- type GenericChargingProfileResultResult
- type GeoLocation
- type GetCdrPageFromDataOwnerParams
- type GetCdrsFromDataOwnerParams
- type GetClientOwnedCdrParams
- type GetClientOwnedConnectorParams
- type GetClientOwnedEvseParams
- type GetClientOwnedLocationParams
- type GetClientOwnedSessionParams
- type GetClientOwnedTariffParams
- type GetClientOwnedTokenParams
- type GetClientOwnedTokenParamsType
- type GetConnectorObjectFromDataOwnerParams
- type GetCredentialsParams
- type GetEvseObjectFromDataOwnerParams
- type GetLocationListFromDataOwnerParams
- type GetLocationObjectFromDataOwnerParams
- type GetLocationPageFromDataOwnerParams
- type GetReceiverChargingProfileParams
- type GetSessionsFromDataOwnerParams
- type GetSessionsPageFromDataOwnerParams
- type GetTariffsFromDataOwnerParams
- type GetTariffsPageFromDataOwnerParams
- type GetTokensFromDataOwnerParams
- type GetTokensPageFromDataOwnerParams
- type GetVersionParams
- type GetVersionsParams
- type Hours
- type Image
- type ImageCategory
- type InvalidParamFormatError
- type Location
- type LocationFacilities
- type LocationParkingType
- type LocationReferences
- type MiddlewareFunc
- type OCPI
- func (o *OCPI) GetToken(ctx context.Context, countryCode string, partyID string, tokenUID string) (*Token, error)
- func (o *OCPI) GetVersion(context.Context) (VersionDetail, error)
- func (o *OCPI) GetVersions(context.Context) ([]Version, error)
- func (o *OCPI) PushLocation(ctx context.Context, location Location) error
- func (o *OCPI) RegisterNewParty(ctx context.Context, url, token string) error
- func (o *OCPI) SetCredentials(ctx context.Context, token string, credentials Credentials) error
- func (o *OCPI) SetExternalUrl(externalUrl string)
- func (o *OCPI) SetToken(ctx context.Context, token Token) error
- type OcpiResponse
- type OcpiResponseAuthorizationInfo
- type OcpiResponseCDR
- type OcpiResponseCDRList
- type OcpiResponseChargingPreferencesResponse
- type OcpiResponseChargingPreferencesResponseData
- type OcpiResponseChargingProfileResponse
- type OcpiResponseCommandResponse
- type OcpiResponseConnector
- type OcpiResponseCredentials
- type OcpiResponseEvse
- type OcpiResponseListVersion
- type OcpiResponseLocation
- type OcpiResponseLocationList
- type OcpiResponseSession
- type OcpiResponseSessionList
- type OcpiResponseTariff
- type OcpiResponseTariffList
- type OcpiResponseToken
- type OcpiResponseTokenList
- type OcpiResponseUnit
- type OcpiResponseVersionDetail
- type PatchClientOwnedConnectorJSONBody
- type PatchClientOwnedConnectorJSONRequestBody
- type PatchClientOwnedConnectorParams
- type PatchClientOwnedEvseJSONBody
- type PatchClientOwnedEvseJSONRequestBody
- type PatchClientOwnedEvseParams
- type PatchClientOwnedLocationJSONBody
- type PatchClientOwnedLocationJSONRequestBody
- type PatchClientOwnedLocationParams
- type PatchClientOwnedSessionJSONBody
- type PatchClientOwnedSessionJSONRequestBody
- type PatchClientOwnedSessionParams
- type PatchClientOwnedTokenJSONBody
- type PatchClientOwnedTokenJSONRequestBody
- type PatchClientOwnedTokenParams
- type PatchClientOwnedTokenParamsType
- type PostAsyncResponseJSONRequestBody
- type PostAsyncResponseParams
- type PostAsyncResponseParamsCommand
- type PostCancelReservationJSONRequestBody
- type PostCancelReservationParams
- type PostClientOwnedCdrJSONRequestBody
- type PostClientOwnedCdrParams
- type PostCredentialsJSONRequestBody
- type PostCredentialsParams
- type PostGenericChargingProfileResultJSONRequestBody
- type PostGenericChargingProfileResultParams
- type PostRealTimeTokenAuthorizationJSONRequestBody
- type PostRealTimeTokenAuthorizationParams
- type PostRealTimeTokenAuthorizationParamsType
- type PostReserveNowJSONRequestBody
- type PostReserveNowParams
- type PostStartSessionJSONRequestBody
- type PostStartSessionParams
- type PostStopSessionJSONRequestBody
- type PostStopSessionParams
- type PostUnlockConnectorJSONRequestBody
- type PostUnlockConnectorParams
- type Price
- type PriceComponent
- type PriceComponentType
- type PublishTokenType
- type PublishTokenTypeType
- type PutChargingPreferencesJSONRequestBody
- type PutChargingPreferencesParams
- type PutClientOwnedConnectorJSONRequestBody
- type PutClientOwnedConnectorParams
- type PutClientOwnedEvseJSONRequestBody
- type PutClientOwnedEvseParams
- type PutClientOwnedLocationJSONRequestBody
- type PutClientOwnedLocationParams
- type PutClientOwnedSessionJSONRequestBody
- type PutClientOwnedSessionParams
- type PutClientOwnedTariffJSONRequestBody
- type PutClientOwnedTariffParams
- type PutClientOwnedTokenJSONRequestBody
- type PutClientOwnedTokenParams
- type PutClientOwnedTokenParamsType
- type PutCredentialsJSONRequestBody
- type PutCredentialsParams
- type PutReceiverChargingProfileJSONRequestBody
- type PutReceiverChargingProfileParams
- type PutSenderChargingProfileJSONRequestBody
- type PutSenderChargingProfileParams
- type RegularHours
- type RequiredHeaderError
- type RequiredParamError
- type ReserveNow
- type Server
- func (s *Server) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) DeleteCredentials(w http.ResponseWriter, r *http.Request, params DeleteCredentialsParams)
- func (s *Server) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (s *Server) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetCdrsFromDataOwnerParams)
- func (s *Server) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request, cdrID string, ...)
- func (s *Server) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, ...)
- func (s *Server) GetCredentials(w http.ResponseWriter, r *http.Request, params GetCredentialsParams)
- func (s *Server) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, ...)
- func (s *Server) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request, ...)
- func (s *Server) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, ...)
- func (s *Server) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (s *Server) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetSessionsFromDataOwnerParams)
- func (s *Server) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTariffsFromDataOwnerParams)
- func (s *Server) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTokensFromDataOwnerParams)
- func (s *Server) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) GetVersion(w http.ResponseWriter, r *http.Request, params GetVersionParams)
- func (s *Server) GetVersions(w http.ResponseWriter, r *http.Request, params GetVersionsParams)
- func (s *Server) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PostAsyncResponse(w http.ResponseWriter, r *http.Request, command PostAsyncResponseParamsCommand, ...)
- func (s *Server) PostCancelReservation(w http.ResponseWriter, r *http.Request, params PostCancelReservationParams)
- func (s *Server) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request, params PostClientOwnedCdrParams)
- func (s *Server) PostCredentials(w http.ResponseWriter, r *http.Request, params PostCredentialsParams)
- func (s *Server) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (s *Server) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request, tokenUID string, ...)
- func (s *Server) PostReserveNow(w http.ResponseWriter, r *http.Request, params PostReserveNowParams)
- func (s *Server) PostStartSession(w http.ResponseWriter, r *http.Request, params PostStartSessionParams)
- func (s *Server) PostStopSession(w http.ResponseWriter, r *http.Request, params PostStopSessionParams)
- func (s *Server) PostUnlockConnector(w http.ResponseWriter, r *http.Request, params PostUnlockConnectorParams)
- func (s *Server) PutChargingPreferences(w http.ResponseWriter, r *http.Request, sessionID string, ...)
- func (s *Server) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (s *Server) PutCredentials(w http.ResponseWriter, r *http.Request, params PutCredentialsParams)
- func (s *Server) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (s *Server) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClientOwnedToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVersions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostAsyncResponse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostCancelReservation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostReserveNow(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostStartSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostStopSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostUnlockConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutChargingPreferences(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutClientOwnedToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request)
- type Session
- type SessionAuthMethod
- type SessionStatus
- type SetChargingProfile
- type SignedData
- type SignedValue
- type StartSession
- type StatusSchedule
- type StatusScheduleStatus
- type StopSession
- type Tariff
- type TariffElement
- type TariffRestrictions
- type TariffRestrictionsDayOfWeek
- type TariffRestrictionsReservation
- type TariffType
- type Token
- type TokenDefaultProfileType
- type TokenType
- type TokenWhitelist
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) DeleteCredentials(w http.ResponseWriter, r *http.Request, params DeleteCredentialsParams)
- func (_ Unimplemented) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (_ Unimplemented) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetCdrsFromDataOwnerParams)
- func (_ Unimplemented) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request, cdrID string, ...)
- func (_ Unimplemented) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, ...)
- func (_ Unimplemented) GetCredentials(w http.ResponseWriter, r *http.Request, params GetCredentialsParams)
- func (_ Unimplemented) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, ...)
- func (_ Unimplemented) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request, ...)
- func (_ Unimplemented) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, ...)
- func (_ Unimplemented) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (_ Unimplemented) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetSessionsFromDataOwnerParams)
- func (_ Unimplemented) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTariffsFromDataOwnerParams)
- func (_ Unimplemented) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTokensFromDataOwnerParams)
- func (_ Unimplemented) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) GetVersion(w http.ResponseWriter, r *http.Request, params GetVersionParams)
- func (_ Unimplemented) GetVersions(w http.ResponseWriter, r *http.Request, params GetVersionsParams)
- func (_ Unimplemented) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PostAsyncResponse(w http.ResponseWriter, r *http.Request, command PostAsyncResponseParamsCommand, ...)
- func (_ Unimplemented) PostCancelReservation(w http.ResponseWriter, r *http.Request, params PostCancelReservationParams)
- func (_ Unimplemented) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request, params PostClientOwnedCdrParams)
- func (_ Unimplemented) PostCredentials(w http.ResponseWriter, r *http.Request, params PostCredentialsParams)
- func (_ Unimplemented) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request, uid string, ...)
- func (_ Unimplemented) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request, tokenUID string, ...)
- func (_ Unimplemented) PostReserveNow(w http.ResponseWriter, r *http.Request, params PostReserveNowParams)
- func (_ Unimplemented) PostStartSession(w http.ResponseWriter, r *http.Request, params PostStartSessionParams)
- func (_ Unimplemented) PostStopSession(w http.ResponseWriter, r *http.Request, params PostStopSessionParams)
- func (_ Unimplemented) PostUnlockConnector(w http.ResponseWriter, r *http.Request, params PostUnlockConnectorParams)
- func (_ Unimplemented) PutChargingPreferences(w http.ResponseWriter, r *http.Request, sessionID string, ...)
- func (_ Unimplemented) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, ...)
- func (_ Unimplemented) PutCredentials(w http.ResponseWriter, r *http.Request, params PutCredentialsParams)
- func (_ Unimplemented) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- func (_ Unimplemented) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, ...)
- type Unit
- type UnlockConnector
- type UnmarshalingParamError
- type Version
- type VersionDetail
Constants ¶
const (
TokenScopes = "token.Scopes"
)
Variables ¶
var ( // success StatusSuccess = int32(1000) // client errors StatusGenericClientError = int32(2000) StatusInvalidParameters = int32(2001) StatusNotEnoughInformation = int32(2002) StatusUnknownLocation = int32(2003) StatusUnknownToken = int32(2004) // server errors StatusGenericServerFailure = int32(3000) StatusUnableToUseClientApi = int32(3001) StatusUnsupportedVersion = int32(3002) StatusNoMatchingEndpoints = int32(3003) // hub errors StatusUnknownReceiver = int32(4001) StatusTimeout = int32(4002) StatusConnectionError = int32(4003) )
var ( // success StatusSuccessMessage = "Success" // client errors StatusGenericClientErrorMessage = "Generic client error" StatusInvalidParametersMessage = "Invalid parameters" StatusNotEnoughInformationMessage = "Not enough information" StatusUnknownLocationMessage = "Unknown location" StatusUnknownTokenMessage = "Unknown token" // server errors StatusGenericServerFailureMessage = "Generic server failure" StatusUnableToUseClientApiMessage = "Unable to use client API" StatusUnsupportedVersionMessage = "Unsupported version" StatusNoMatchingEndpointsMessage = "No matching endpoints" // hub errors StatusUnknownReceiverMessage = "Unknown receiver" StatusTimeoutMessage = "Timeout" StatusConnectionErrorMessage = "Connection error" // other StatusOtherMessage = "Other" )
var ErrNotFound = &ErrResponse{ HTTPStatusCode: http.StatusNotFound, StatusText: http.StatusText(http.StatusNotFound), }
Functions ¶
func ErrInternalError ¶
func ErrInvalidRequest ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewTokenAuthenticationFunc ¶
func NewTokenAuthenticationFunc(engine store.Engine) openapi3filter.AuthenticationFunc
Types ¶
type ActiveChargingProfile ¶
type ActiveChargingProfile struct { ChargingProfile ChargingProfile `json:"charging_profile"` StartDateTime string `json:"start_date_time"` }
ActiveChargingProfile defines model for ActiveChargingProfile.
type AdditionalGeoLocation ¶
type AdditionalGeoLocation struct { Latitude string `json:"latitude"` Longitude string `json:"longitude"` Name *DisplayText `json:"name,omitempty"` }
AdditionalGeoLocation defines model for AdditionalGeoLocation.
type Api ¶
type Api interface { SetExternalUrl(serverUrl string) RegisterNewParty(ctx context.Context, url, token string) error GetVersions(ctx context.Context) ([]Version, error) GetVersion(ctx context.Context) (VersionDetail, error) SetCredentials(ctx context.Context, token string, credentials Credentials) error SetToken(ctx context.Context, token Token) error GetToken(ctx context.Context, countryCode string, partyID string, tokenUID string) (*Token, error) PushLocation(ctx context.Context, location Location) error }
type AuthorizationInfo ¶
type AuthorizationInfo struct { Allowed AuthorizationInfoAllowed `json:"allowed"` AuthorizationReference *string `json:"authorization_reference,omitempty"` Info *DisplayText `json:"info,omitempty"` Location *LocationReferences `json:"location,omitempty"` Token Token `json:"token"` }
AuthorizationInfo defines model for AuthorizationInfo.
type AuthorizationInfoAllowed ¶
type AuthorizationInfoAllowed string
AuthorizationInfoAllowed defines model for AuthorizationInfo.Allowed.
const ( AuthorizationInfoAllowedALLOWED AuthorizationInfoAllowed = "ALLOWED" AuthorizationInfoAllowedBLOCKED AuthorizationInfoAllowed = "BLOCKED" AuthorizationInfoAllowedEXPIRED AuthorizationInfoAllowed = "EXPIRED" AuthorizationInfoAllowedNOCREDIT AuthorizationInfoAllowed = "NO_CREDIT" AuthorizationInfoAllowedNOTALLOWED AuthorizationInfoAllowed = "NOT_ALLOWED" )
Defines values for AuthorizationInfoAllowed.
type BusinessDetails ¶
type BusinessDetails struct { Logo *Image `json:"logo,omitempty"` Name string `json:"name"` Website *string `json:"website,omitempty"` }
BusinessDetails defines model for BusinessDetails.
type CDR ¶
type CDR struct { AuthMethod CDRAuthMethod `json:"auth_method"` AuthorizationReference *string `json:"authorization_reference,omitempty"` CdrLocation CdrLocation `json:"cdr_location"` CdrToken CdrToken `json:"cdr_token"` ChargingPeriods []ChargingPeriod `json:"charging_periods"` CountryCode string `json:"country_code"` Credit *bool `json:"credit,omitempty"` CreditReferenceId *string `json:"credit_reference_id,omitempty"` Currency string `json:"currency"` EndDateTime string `json:"end_date_time"` Id string `json:"id"` InvoiceReferenceId *string `json:"invoice_reference_id,omitempty"` LastUpdated string `json:"last_updated"` MeterId *string `json:"meter_id,omitempty"` PartyId string `json:"party_id"` Remark *string `json:"remark,omitempty"` SessionId *string `json:"session_id,omitempty"` SignedData *SignedData `json:"signed_data,omitempty"` StartDateTime string `json:"start_date_time"` Tariffs *[]Tariff `json:"tariffs,omitempty"` TotalCost Price `json:"total_cost"` TotalEnergy float32 `json:"total_energy"` TotalEnergyCost *Price `json:"total_energy_cost,omitempty"` TotalFixedCost *Price `json:"total_fixed_cost,omitempty"` TotalParkingCost *Price `json:"total_parking_cost,omitempty"` TotalParkingTime *float32 `json:"total_parking_time,omitempty"` TotalReservationCost *Price `json:"total_reservation_cost,omitempty"` TotalTime float32 `json:"total_time"` TotalTimeCost *Price `json:"total_time_cost,omitempty"` }
CDR defines model for CDR.
type CDRAuthMethod ¶
type CDRAuthMethod string
CDRAuthMethod defines model for CDR.AuthMethod.
const ( CDRAuthMethodAUTHREQUEST CDRAuthMethod = "AUTH_REQUEST" CDRAuthMethodCOMMAND CDRAuthMethod = "COMMAND" CDRAuthMethodWHITELIST CDRAuthMethod = "WHITELIST" )
Defines values for CDRAuthMethod.
type CancelReservation ¶
type CancelReservation struct { ReservationId string `json:"reservation_id"` ResponseUrl string `json:"response_url"` }
CancelReservation defines model for CancelReservation.
type CdrDimension ¶
type CdrDimension struct { Type CdrDimensionType `json:"type"` Volume float32 `json:"volume"` }
CdrDimension defines model for CdrDimension.
type CdrDimensionType ¶
type CdrDimensionType string
CdrDimensionType defines model for CdrDimension.Type.
const ( CdrDimensionTypeCURRENT CdrDimensionType = "CURRENT" CdrDimensionTypeENERGY CdrDimensionType = "ENERGY" CdrDimensionTypeENERGYEXPORT CdrDimensionType = "ENERGY_EXPORT" CdrDimensionTypeENERGYIMPORT CdrDimensionType = "ENERGY_IMPORT" CdrDimensionTypeMAXCURRENT CdrDimensionType = "MAX_CURRENT" CdrDimensionTypeMAXPOWER CdrDimensionType = "MAX_POWER" CdrDimensionTypeMINCURRENT CdrDimensionType = "MIN_CURRENT" CdrDimensionTypeMINPOWER CdrDimensionType = "MIN_POWER" CdrDimensionTypePARKINGTIME CdrDimensionType = "PARKING_TIME" CdrDimensionTypePOWER CdrDimensionType = "POWER" CdrDimensionTypeRESERVATIONTIME CdrDimensionType = "RESERVATION_TIME" CdrDimensionTypeSTATEOFCHARGE CdrDimensionType = "STATE_OF_CHARGE" CdrDimensionTypeTIME CdrDimensionType = "TIME" )
Defines values for CdrDimensionType.
type CdrLocation ¶
type CdrLocation struct { Address string `json:"address"` City string `json:"city"` ConnectorFormat CdrLocationConnectorFormat `json:"connector_format"` ConnectorId string `json:"connector_id"` ConnectorPowerType CdrLocationConnectorPowerType `json:"connector_power_type"` ConnectorStandard CdrLocationConnectorStandard `json:"connector_standard"` Coordinates GeoLocation `json:"coordinates"` Country string `json:"country"` EvseId string `json:"evse_id"` EvseUid string `json:"evse_uid"` Id string `json:"id"` Name *string `json:"name,omitempty"` PostalCode string `json:"postal_code"` }
CdrLocation defines model for CdrLocation.
type CdrLocationConnectorFormat ¶
type CdrLocationConnectorFormat string
CdrLocationConnectorFormat defines model for CdrLocation.ConnectorFormat.
const ( CdrLocationConnectorFormatCABLE CdrLocationConnectorFormat = "CABLE" CdrLocationConnectorFormatSOCKET CdrLocationConnectorFormat = "SOCKET" )
Defines values for CdrLocationConnectorFormat.
type CdrLocationConnectorPowerType ¶
type CdrLocationConnectorPowerType string
CdrLocationConnectorPowerType defines model for CdrLocation.ConnectorPowerType.
const ( CdrLocationConnectorPowerTypeAC1PHASE CdrLocationConnectorPowerType = "AC_1_PHASE" CdrLocationConnectorPowerTypeAC3PHASE CdrLocationConnectorPowerType = "AC_3_PHASE" CdrLocationConnectorPowerTypeDC CdrLocationConnectorPowerType = "DC" )
Defines values for CdrLocationConnectorPowerType.
type CdrLocationConnectorStandard ¶
type CdrLocationConnectorStandard string
CdrLocationConnectorStandard defines model for CdrLocation.ConnectorStandard.
const ( CdrLocationConnectorStandardCHADEMO CdrLocationConnectorStandard = "CHADEMO" CdrLocationConnectorStandardDOMESTICA CdrLocationConnectorStandard = "DOMESTIC_A" CdrLocationConnectorStandardDOMESTICB CdrLocationConnectorStandard = "DOMESTIC_B" CdrLocationConnectorStandardDOMESTICC CdrLocationConnectorStandard = "DOMESTIC_C" CdrLocationConnectorStandardDOMESTICD CdrLocationConnectorStandard = "DOMESTIC_D" CdrLocationConnectorStandardDOMESTICE CdrLocationConnectorStandard = "DOMESTIC_E" CdrLocationConnectorStandardDOMESTICF CdrLocationConnectorStandard = "DOMESTIC_F" CdrLocationConnectorStandardDOMESTICG CdrLocationConnectorStandard = "DOMESTIC_G" CdrLocationConnectorStandardDOMESTICH CdrLocationConnectorStandard = "DOMESTIC_H" CdrLocationConnectorStandardDOMESTICI CdrLocationConnectorStandard = "DOMESTIC_I" CdrLocationConnectorStandardDOMESTICJ CdrLocationConnectorStandard = "DOMESTIC_J" CdrLocationConnectorStandardDOMESTICK CdrLocationConnectorStandard = "DOMESTIC_K" CdrLocationConnectorStandardDOMESTICL CdrLocationConnectorStandard = "DOMESTIC_L" CdrLocationConnectorStandardIEC603092Single16 CdrLocationConnectorStandard = "IEC_60309_2_single_16" CdrLocationConnectorStandardIEC603092Three16 CdrLocationConnectorStandard = "IEC_60309_2_three_16" CdrLocationConnectorStandardIEC603092Three32 CdrLocationConnectorStandard = "IEC_60309_2_three_32" CdrLocationConnectorStandardIEC603092Three64 CdrLocationConnectorStandard = "IEC_60309_2_three_64" CdrLocationConnectorStandardIEC62196T1 CdrLocationConnectorStandard = "IEC_62196_T1" CdrLocationConnectorStandardIEC62196T1COMBO CdrLocationConnectorStandard = "IEC_62196_T1_COMBO" CdrLocationConnectorStandardIEC62196T2 CdrLocationConnectorStandard = "IEC_62196_T2" CdrLocationConnectorStandardIEC62196T2COMBO CdrLocationConnectorStandard = "IEC_62196_T2_COMBO" CdrLocationConnectorStandardIEC62196T3A CdrLocationConnectorStandard = "IEC_62196_T3A" CdrLocationConnectorStandardIEC62196T3C CdrLocationConnectorStandard = "IEC_62196_T3C" CdrLocationConnectorStandardPANTOGRAPHBOTTOMUP CdrLocationConnectorStandard = "PANTOGRAPH_BOTTOM_UP" CdrLocationConnectorStandardPANTOGRAPHTOPDOWN CdrLocationConnectorStandard = "PANTOGRAPH_TOP_DOWN" CdrLocationConnectorStandardTESLAR CdrLocationConnectorStandard = "TESLA_R" CdrLocationConnectorStandardTESLAS CdrLocationConnectorStandard = "TESLA_S" )
Defines values for CdrLocationConnectorStandard.
type CdrToken ¶
type CdrToken struct { ContractId string `json:"contract_id"` Type CdrTokenType `json:"type"` Uid string `json:"uid"` }
CdrToken defines model for CdrToken.
type CdrTokenType ¶
type CdrTokenType string
CdrTokenType defines model for CdrToken.Type.
const ( CdrTokenTypeADHOCUSER CdrTokenType = "AD_HOC_USER" CdrTokenTypeAPPUSER CdrTokenType = "APP_USER" CdrTokenTypeOTHER CdrTokenType = "OTHER" CdrTokenTypeRFID CdrTokenType = "RFID" )
Defines values for CdrTokenType.
type ChargingPeriod ¶
type ChargingPeriod struct { Dimensions []CdrDimension `json:"dimensions"` StartDateTime string `json:"start_date_time"` TariffId *string `json:"tariff_id,omitempty"` }
ChargingPeriod defines model for ChargingPeriod.
type ChargingPreferences ¶
type ChargingPreferences struct { DepartureTime *string `json:"departure_time,omitempty"` DischargeAllowed *bool `json:"discharge_allowed,omitempty"` EnergyNeed *float32 `json:"energy_need,omitempty"` ProfileType ChargingPreferencesProfileType `json:"profile_type"` }
ChargingPreferences defines model for ChargingPreferences.
type ChargingPreferencesProfileType ¶
type ChargingPreferencesProfileType string
ChargingPreferencesProfileType defines model for ChargingPreferences.ProfileType.
const ( ChargingPreferencesProfileTypeCHEAP ChargingPreferencesProfileType = "CHEAP" ChargingPreferencesProfileTypeFAST ChargingPreferencesProfileType = "FAST" ChargingPreferencesProfileTypeGREEN ChargingPreferencesProfileType = "GREEN" ChargingPreferencesProfileTypeREGULAR ChargingPreferencesProfileType = "REGULAR" )
Defines values for ChargingPreferencesProfileType.
type ChargingProfile ¶
type ChargingProfile struct { ChargingProfilePeriod *[]ChargingProfilePeriod `json:"charging_profile_period,omitempty"` ChargingRateUnit ChargingProfileChargingRateUnit `json:"charging_rate_unit"` Duration *int32 `json:"duration,omitempty"` MinChargingRate *float32 `json:"min_charging_rate,omitempty"` StartDateTime *string `json:"start_date_time,omitempty"` }
ChargingProfile defines model for ChargingProfile.
type ChargingProfileChargingRateUnit ¶
type ChargingProfileChargingRateUnit string
ChargingProfileChargingRateUnit defines model for ChargingProfile.ChargingRateUnit.
const ( A ChargingProfileChargingRateUnit = "A" W ChargingProfileChargingRateUnit = "W" )
Defines values for ChargingProfileChargingRateUnit.
type ChargingProfilePeriod ¶
type ChargingProfilePeriod struct { Limit float32 `json:"limit"` StartPeriod int32 `json:"start_period"` }
ChargingProfilePeriod defines model for ChargingProfilePeriod.
type ChargingProfileResponse ¶
type ChargingProfileResponse struct { Result ChargingProfileResponseResult `json:"result"` Timeout int32 `json:"timeout"` }
ChargingProfileResponse defines model for ChargingProfileResponse.
type ChargingProfileResponseResult ¶
type ChargingProfileResponseResult string
ChargingProfileResponseResult defines model for ChargingProfileResponse.Result.
const ( ChargingProfileResponseResultACCEPTED ChargingProfileResponseResult = "ACCEPTED" ChargingProfileResponseResultNOTSUPPORTED ChargingProfileResponseResult = "NOT_SUPPORTED" ChargingProfileResponseResultREJECTED ChargingProfileResponseResult = "REJECTED" ChargingProfileResponseResultTOOOFTEN ChargingProfileResponseResult = "TOO_OFTEN" ChargingProfileResponseResultUNKNOWNSESSION ChargingProfileResponseResult = "UNKNOWN_SESSION" )
Defines values for ChargingProfileResponseResult.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type CommandResponse ¶
type CommandResponse struct { Message *DisplayText `json:"message,omitempty"` Result CommandResponseResult `json:"result"` Timeout int32 `json:"timeout"` }
CommandResponse defines model for CommandResponse.
type CommandResponseResult ¶
type CommandResponseResult string
CommandResponseResult defines model for CommandResponse.Result.
const ( CommandResponseResultACCEPTED CommandResponseResult = "ACCEPTED" CommandResponseResultNOTSUPPORTED CommandResponseResult = "NOT_SUPPORTED" CommandResponseResultREJECTED CommandResponseResult = "REJECTED" CommandResponseResultUNKNOWNSESSION CommandResponseResult = "UNKNOWN_SESSION" )
Defines values for CommandResponseResult.
type CommandResult ¶
type CommandResult struct { Message *DisplayText `json:"message,omitempty"` Result CommandResultResult `json:"result"` }
CommandResult defines model for CommandResult.
type CommandResultResult ¶
type CommandResultResult string
CommandResultResult defines model for CommandResult.Result.
const ( CommandResultResultACCEPTED CommandResultResult = "ACCEPTED" CommandResultResultCANCELEDRESERVATION CommandResultResult = "CANCELED_RESERVATION" CommandResultResultEVSEINOPERATIVE CommandResultResult = "EVSE_INOPERATIVE" CommandResultResultEVSEOCCUPIED CommandResultResult = "EVSE_OCCUPIED" CommandResultResultFAILED CommandResultResult = "FAILED" CommandResultResultNOTSUPPORTED CommandResultResult = "NOT_SUPPORTED" CommandResultResultREJECTED CommandResultResult = "REJECTED" CommandResultResultTIMEOUT CommandResultResult = "TIMEOUT" CommandResultResultUNKNOWNRESERVATION CommandResultResult = "UNKNOWN_RESERVATION" )
Defines values for CommandResultResult.
type Connector ¶
type Connector struct { Format ConnectorFormat `json:"format"` Id string `json:"id"` LastUpdated string `json:"last_updated"` MaxAmperage int32 `json:"max_amperage"` MaxElectricPower *int32 `json:"max_electric_power,omitempty"` MaxVoltage int32 `json:"max_voltage"` PowerType ConnectorPowerType `json:"power_type"` Standard ConnectorStandard `json:"standard"` TariffIds *[]string `json:"tariff_ids,omitempty"` TermsAndConditions *string `json:"terms_and_conditions,omitempty"` }
Connector defines model for Connector.
type ConnectorFormat ¶
type ConnectorFormat string
ConnectorFormat defines model for Connector.Format.
const ( ConnectorFormatCABLE ConnectorFormat = "CABLE" ConnectorFormatSOCKET ConnectorFormat = "SOCKET" )
Defines values for ConnectorFormat.
type ConnectorPowerType ¶
type ConnectorPowerType string
ConnectorPowerType defines model for Connector.PowerType.
const ( ConnectorPowerTypeAC1PHASE ConnectorPowerType = "AC_1_PHASE" ConnectorPowerTypeAC3PHASE ConnectorPowerType = "AC_3_PHASE" ConnectorPowerTypeDC ConnectorPowerType = "DC" )
Defines values for ConnectorPowerType.
type ConnectorStandard ¶
type ConnectorStandard string
ConnectorStandard defines model for Connector.Standard.
const ( ConnectorStandardCHADEMO ConnectorStandard = "CHADEMO" ConnectorStandardCHAOJI ConnectorStandard = "CHAOJI" ConnectorStandardDOMESTICA ConnectorStandard = "DOMESTIC_A" ConnectorStandardDOMESTICB ConnectorStandard = "DOMESTIC_B" ConnectorStandardDOMESTICC ConnectorStandard = "DOMESTIC_C" ConnectorStandardDOMESTICD ConnectorStandard = "DOMESTIC_D" ConnectorStandardDOMESTICE ConnectorStandard = "DOMESTIC_E" ConnectorStandardDOMESTICF ConnectorStandard = "DOMESTIC_F" ConnectorStandardDOMESTICG ConnectorStandard = "DOMESTIC_G" ConnectorStandardDOMESTICH ConnectorStandard = "DOMESTIC_H" ConnectorStandardDOMESTICI ConnectorStandard = "DOMESTIC_I" ConnectorStandardDOMESTICJ ConnectorStandard = "DOMESTIC_J" ConnectorStandardDOMESTICK ConnectorStandard = "DOMESTIC_K" ConnectorStandardDOMESTICL ConnectorStandard = "DOMESTIC_L" ConnectorStandardGBTAC ConnectorStandard = "GBT_AC" ConnectorStandardGBTDC ConnectorStandard = "GBT_DC" ConnectorStandardIEC603092Single16 ConnectorStandard = "IEC_60309_2_single_16" ConnectorStandardIEC603092Three16 ConnectorStandard = "IEC_60309_2_three_16" ConnectorStandardIEC603092Three32 ConnectorStandard = "IEC_60309_2_three_32" ConnectorStandardIEC603092Three64 ConnectorStandard = "IEC_60309_2_three_64" ConnectorStandardIEC62196T1 ConnectorStandard = "IEC_62196_T1" ConnectorStandardIEC62196T1COMBO ConnectorStandard = "IEC_62196_T1_COMBO" ConnectorStandardIEC62196T2 ConnectorStandard = "IEC_62196_T2" ConnectorStandardIEC62196T2COMBO ConnectorStandard = "IEC_62196_T2_COMBO" ConnectorStandardIEC62196T3A ConnectorStandard = "IEC_62196_T3A" ConnectorStandardIEC62196T3C ConnectorStandard = "IEC_62196_T3C" ConnectorStandardNEMA1030 ConnectorStandard = "NEMA_10_30" ConnectorStandardNEMA1050 ConnectorStandard = "NEMA_10_50" ConnectorStandardNEMA1430 ConnectorStandard = "NEMA_14_30" ConnectorStandardNEMA1450 ConnectorStandard = "NEMA_14_50" ConnectorStandardNEMA520 ConnectorStandard = "NEMA_5_20" ConnectorStandardNEMA630 ConnectorStandard = "NEMA_6_30" ConnectorStandardNEMA650 ConnectorStandard = "NEMA_6_50" ConnectorStandardPANTOGRAPHBOTTOMUP ConnectorStandard = "PANTOGRAPH_BOTTOM_UP" ConnectorStandardPANTOGRAPHTOPDOWN ConnectorStandard = "PANTOGRAPH_TOP_DOWN" ConnectorStandardTESLAR ConnectorStandard = "TESLA_R" ConnectorStandardTESLAS ConnectorStandard = "TESLA_S" ConnectorStandardUNKNOWN ConnectorStandard = "UNKNOWN" )
Defines values for ConnectorStandard.
type ContextKey ¶
type ContextKey string
const (
ContextKeyCorrelationId ContextKey = "correlation_id"
)
type Credentials ¶
type Credentials struct { Roles []CredentialsRole `json:"roles"` Token string `json:"token"` Url string `json:"url"` }
Credentials defines model for Credentials.
type CredentialsRole ¶
type CredentialsRole struct { BusinessDetails BusinessDetails `json:"business_details"` CountryCode string `json:"country_code"` PartyId string `json:"party_id"` Role CredentialsRoleRole `json:"role"` }
CredentialsRole defines model for CredentialsRole.
type CredentialsRoleRole ¶
type CredentialsRoleRole string
CredentialsRoleRole defines model for CredentialsRole.Role.
const ( CredentialsRoleRoleCPO CredentialsRoleRole = "CPO" CredentialsRoleRoleEMSP CredentialsRoleRole = "EMSP" CredentialsRoleRoleHUB CredentialsRoleRole = "HUB" CredentialsRoleRoleNAP CredentialsRoleRole = "NAP" CredentialsRoleRoleNSP CredentialsRoleRole = "NSP" CredentialsRoleRoleOTHER CredentialsRoleRole = "OTHER" CredentialsRoleRoleSCSP CredentialsRoleRole = "SCSP" )
Defines values for CredentialsRoleRole.
type DeleteClientOwnedTariffParams ¶
type DeleteClientOwnedTariffParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
DeleteClientOwnedTariffParams defines parameters for DeleteClientOwnedTariff.
type DeleteCredentialsParams ¶
type DeleteCredentialsParams struct {
Authorization string `json:"Authorization"`
}
DeleteCredentialsParams defines parameters for DeleteCredentials.
type DeleteReceiverChargingProfileParams ¶
type DeleteReceiverChargingProfileParams struct { ResponseUrl string `form:"response_url" json:"response_url"` Authorization string `json:"Authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
DeleteReceiverChargingProfileParams defines parameters for DeleteReceiverChargingProfile.
type DisplayText ¶
DisplayText defines model for DisplayText.
type Endpoint ¶
type Endpoint struct { Identifier string `json:"identifier"` Role EndpointRole `json:"role"` Url string `json:"url"` }
Endpoint defines model for Endpoint.
type EndpointRole ¶
type EndpointRole string
EndpointRole defines model for Endpoint.Role.
const ( RECEIVER EndpointRole = "RECEIVER" SENDER EndpointRole = "SENDER" )
Defines values for EndpointRole.
type EnergyContract ¶
type EnergyContract struct { ContractId *string `json:"contract_id,omitempty"` SupplierName string `json:"supplier_name"` }
EnergyContract defines model for EnergyContract.
type EnergyMix ¶
type EnergyMix struct { EnergyProductName *string `json:"energy_product_name,omitempty"` EnergySources *[]EnergySource `json:"energy_sources,omitempty"` EnvironImpact *[]EnvironmentalImpact `json:"environ_impact,omitempty"` IsGreenEnergy bool `json:"is_green_energy"` SupplierName *string `json:"supplier_name,omitempty"` }
EnergyMix defines model for EnergyMix.
type EnergySource ¶
type EnergySource struct { Percentage float32 `json:"percentage"` Source EnergySourceSource `json:"source"` }
EnergySource defines model for EnergySource.
type EnergySourceSource ¶
type EnergySourceSource string
EnergySourceSource defines model for EnergySource.Source.
const ( COAL EnergySourceSource = "COAL" GAS EnergySourceSource = "GAS" GENERALFOSSIL EnergySourceSource = "GENERAL_FOSSIL" GENERALGREEN EnergySourceSource = "GENERAL_GREEN" NUCLEAR EnergySourceSource = "NUCLEAR" SOLAR EnergySourceSource = "SOLAR" WATER EnergySourceSource = "WATER" WIND EnergySourceSource = "WIND" )
Defines values for EnergySourceSource.
type EnvironmentalImpact ¶
type EnvironmentalImpact struct { Amount float32 `json:"amount"` Category EnvironmentalImpactCategory `json:"category"` }
EnvironmentalImpact defines model for EnvironmentalImpact.
type EnvironmentalImpactCategory ¶
type EnvironmentalImpactCategory string
EnvironmentalImpactCategory defines model for EnvironmentalImpact.Category.
const ( CARBONDIOXIDE EnvironmentalImpactCategory = "CARBON_DIOXIDE" NUCLEARWASTE EnvironmentalImpactCategory = "NUCLEAR_WASTE" )
Defines values for EnvironmentalImpactCategory.
type ErrResponse ¶
type ErrResponse struct { Err error `json:"-"` // low-level runtime error HTTPStatusCode int `json:"-"` // http response status code StatusText string `json:"status"` // user-level status message AppCode int64 `json:"code,omitempty"` // application-specific error code ErrorText string `json:"error,omitempty"` // application-level error message, for debugging }
func (*ErrResponse) Render ¶
func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) error
type Evse ¶
type Evse struct { Capabilities *[]EvseCapabilities `json:"capabilities,omitempty"` Connectors []Connector `json:"connectors"` Coordinates *GeoLocation `json:"coordinates,omitempty"` Directions *[]DisplayText `json:"directions,omitempty"` EvseId *string `json:"evse_id"` FloorLevel *string `json:"floor_level,omitempty"` Images *[]Image `json:"images,omitempty"` LastUpdated string `json:"last_updated"` ParkingRestrictions *[]EvseParkingRestrictions `json:"parking_restrictions,omitempty"` PhysicalReference *string `json:"physical_reference,omitempty"` Status EvseStatus `json:"status"` StatusSchedule *[]StatusSchedule `json:"status_schedule,omitempty"` // Uid Uniquely identifies the EVSE within the CPOs platform (and // suboperator platforms). Uid string `json:"uid"` }
Evse defines model for Evse.
type EvseCapabilities ¶
type EvseCapabilities string
EvseCapabilities defines model for Evse.Capabilities.
const ( CHARGINGPREFERENCESCAPABLE EvseCapabilities = "CHARGING_PREFERENCES_CAPABLE" CHARGINGPROFILECAPABLE EvseCapabilities = "CHARGING_PROFILE_CAPABLE" CHIPCARDSUPPORT EvseCapabilities = "CHIP_CARD_SUPPORT" CONTACTLESSCARDSUPPORT EvseCapabilities = "CONTACTLESS_CARD_SUPPORT" CREDITCARDPAYABLE EvseCapabilities = "CREDIT_CARD_PAYABLE" DEBITCARDPAYABLE EvseCapabilities = "DEBIT_CARD_PAYABLE" PEDTERMINAL EvseCapabilities = "PED_TERMINAL" REMOTESTARTSTOPCAPABLE EvseCapabilities = "REMOTE_START_STOP_CAPABLE" RESERVABLE EvseCapabilities = "RESERVABLE" RFIDREADER EvseCapabilities = "RFID_READER" TOKENGROUPCAPABLE EvseCapabilities = "TOKEN_GROUP_CAPABLE" UNLOCKCAPABLE EvseCapabilities = "UNLOCK_CAPABLE" )
Defines values for EvseCapabilities.
type EvseParkingRestrictions ¶
type EvseParkingRestrictions string
EvseParkingRestrictions defines model for Evse.ParkingRestrictions.
const ( CUSTOMERS EvseParkingRestrictions = "CUSTOMERS" DISABLED EvseParkingRestrictions = "DISABLED" EVONLY EvseParkingRestrictions = "EV_ONLY" MOTORCYCLES EvseParkingRestrictions = "MOTORCYCLES" PLUGGED EvseParkingRestrictions = "PLUGGED" )
Defines values for EvseParkingRestrictions.
type EvseStatus ¶
type EvseStatus string
EvseStatus defines model for Evse.Status.
const ( EvseStatusAVAILABLE EvseStatus = "AVAILABLE" EvseStatusBLOCKED EvseStatus = "BLOCKED" EvseStatusCHARGING EvseStatus = "CHARGING" EvseStatusINOPERATIVE EvseStatus = "INOPERATIVE" EvseStatusOUTOFORDER EvseStatus = "OUTOFORDER" EvseStatusPLANNED EvseStatus = "PLANNED" EvseStatusREMOVED EvseStatus = "REMOVED" EvseStatusRESERVED EvseStatus = "RESERVED" EvseStatusUNKNOWN EvseStatus = "UNKNOWN" )
Defines values for EvseStatus.
type ExceptionalPeriod ¶
type ExceptionalPeriod struct { PeriodBegin string `json:"period_begin"` PeriodEnd string `json:"period_end"` }
ExceptionalPeriod defines model for ExceptionalPeriod.
type GenericChargingProfileResult ¶
type GenericChargingProfileResult struct { Profile *ActiveChargingProfile `json:"profile,omitempty"` Result GenericChargingProfileResultResult `json:"result"` }
GenericChargingProfileResult defines model for GenericChargingProfileResult.
type GenericChargingProfileResultResult ¶
type GenericChargingProfileResultResult string
GenericChargingProfileResultResult defines model for GenericChargingProfileResult.Result.
const ( GenericChargingProfileResultResultACCEPTED GenericChargingProfileResultResult = "ACCEPTED" GenericChargingProfileResultResultREJECTED GenericChargingProfileResultResult = "REJECTED" GenericChargingProfileResultResultUNKNOWN GenericChargingProfileResultResult = "UNKNOWN" )
Defines values for GenericChargingProfileResultResult.
type GeoLocation ¶
GeoLocation defines model for GeoLocation.
type GetCdrPageFromDataOwnerParams ¶
type GetCdrPageFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetCdrPageFromDataOwnerParams defines parameters for GetCdrPageFromDataOwner.
type GetCdrsFromDataOwnerParams ¶
type GetCdrsFromDataOwnerParams struct { DateFrom *string `form:"date_from,omitempty" json:"date_from,omitempty"` DateTo *string `form:"date_to,omitempty" json:"date_to,omitempty"` Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetCdrsFromDataOwnerParams defines parameters for GetCdrsFromDataOwner.
type GetClientOwnedCdrParams ¶
type GetClientOwnedCdrParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedCdrParams defines parameters for GetClientOwnedCdr.
type GetClientOwnedConnectorParams ¶
type GetClientOwnedConnectorParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedConnectorParams defines parameters for GetClientOwnedConnector.
type GetClientOwnedEvseParams ¶
type GetClientOwnedEvseParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedEvseParams defines parameters for GetClientOwnedEvse.
type GetClientOwnedLocationParams ¶
type GetClientOwnedLocationParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedLocationParams defines parameters for GetClientOwnedLocation.
type GetClientOwnedSessionParams ¶
type GetClientOwnedSessionParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedSessionParams defines parameters for GetClientOwnedSession.
type GetClientOwnedTariffParams ¶
type GetClientOwnedTariffParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedTariffParams defines parameters for GetClientOwnedTariff.
type GetClientOwnedTokenParams ¶
type GetClientOwnedTokenParams struct { Type *GetClientOwnedTokenParamsType `form:"type,omitempty" json:"type,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetClientOwnedTokenParams defines parameters for GetClientOwnedToken.
type GetClientOwnedTokenParamsType ¶
type GetClientOwnedTokenParamsType string
GetClientOwnedTokenParamsType defines parameters for GetClientOwnedToken.
const ( GetClientOwnedTokenParamsTypeADHOCUSER GetClientOwnedTokenParamsType = "AD_HOC_USER" GetClientOwnedTokenParamsTypeAPPUSER GetClientOwnedTokenParamsType = "APP_USER" GetClientOwnedTokenParamsTypeOTHER GetClientOwnedTokenParamsType = "OTHER" GetClientOwnedTokenParamsTypeRFID GetClientOwnedTokenParamsType = "RFID" )
Defines values for GetClientOwnedTokenParamsType.
type GetConnectorObjectFromDataOwnerParams ¶
type GetConnectorObjectFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetConnectorObjectFromDataOwnerParams defines parameters for GetConnectorObjectFromDataOwner.
type GetCredentialsParams ¶
type GetCredentialsParams struct {
Authorization string `json:"Authorization"`
}
GetCredentialsParams defines parameters for GetCredentials.
type GetEvseObjectFromDataOwnerParams ¶
type GetEvseObjectFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetEvseObjectFromDataOwnerParams defines parameters for GetEvseObjectFromDataOwner.
type GetLocationListFromDataOwnerParams ¶
type GetLocationListFromDataOwnerParams struct { DateFrom *string `form:"date_from,omitempty" json:"date_from,omitempty"` DateTo *string `form:"date_to,omitempty" json:"date_to,omitempty"` Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetLocationListFromDataOwnerParams defines parameters for GetLocationListFromDataOwner.
type GetLocationObjectFromDataOwnerParams ¶
type GetLocationObjectFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetLocationObjectFromDataOwnerParams defines parameters for GetLocationObjectFromDataOwner.
type GetLocationPageFromDataOwnerParams ¶
type GetLocationPageFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetLocationPageFromDataOwnerParams defines parameters for GetLocationPageFromDataOwner.
type GetReceiverChargingProfileParams ¶
type GetReceiverChargingProfileParams struct { Duration int32 `form:"duration" json:"duration"` ResponseUrl string `form:"response_url" json:"response_url"` Authorization string `json:"Authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetReceiverChargingProfileParams defines parameters for GetReceiverChargingProfile.
type GetSessionsFromDataOwnerParams ¶
type GetSessionsFromDataOwnerParams struct { DateFrom *string `form:"date_from,omitempty" json:"date_from,omitempty"` DateTo *string `form:"date_to,omitempty" json:"date_to,omitempty"` Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetSessionsFromDataOwnerParams defines parameters for GetSessionsFromDataOwner.
type GetSessionsPageFromDataOwnerParams ¶
type GetSessionsPageFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetSessionsPageFromDataOwnerParams defines parameters for GetSessionsPageFromDataOwner.
type GetTariffsFromDataOwnerParams ¶
type GetTariffsFromDataOwnerParams struct { DateFrom *string `form:"date_from,omitempty" json:"date_from,omitempty"` DateTo *string `form:"date_to,omitempty" json:"date_to,omitempty"` Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetTariffsFromDataOwnerParams defines parameters for GetTariffsFromDataOwner.
type GetTariffsPageFromDataOwnerParams ¶
type GetTariffsPageFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetTariffsPageFromDataOwnerParams defines parameters for GetTariffsPageFromDataOwner.
type GetTokensFromDataOwnerParams ¶
type GetTokensFromDataOwnerParams struct { DateFrom *string `form:"date_from,omitempty" json:"date_from,omitempty"` DateTo *string `form:"date_to,omitempty" json:"date_to,omitempty"` Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetTokensFromDataOwnerParams defines parameters for GetTokensFromDataOwner.
type GetTokensPageFromDataOwnerParams ¶
type GetTokensPageFromDataOwnerParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
GetTokensPageFromDataOwnerParams defines parameters for GetTokensPageFromDataOwner.
type GetVersionParams ¶
type GetVersionParams struct {
Authorization string `json:"Authorization"`
}
GetVersionParams defines parameters for GetVersion.
type GetVersionsParams ¶
type GetVersionsParams struct {
Authorization string `json:"Authorization"`
}
GetVersionsParams defines parameters for GetVersions.
type Hours ¶
type Hours struct { ExceptionalClosings *ExceptionalPeriod `json:"exceptional_closings,omitempty"` ExceptionalOpenings *ExceptionalPeriod `json:"exceptional_openings,omitempty"` RegularHours *RegularHours `json:"regular_hours,omitempty"` Twentyfourseven bool `json:"twentyfourseven"` }
Hours defines model for Hours.
type Image ¶
type Image struct { Category ImageCategory `json:"category"` Height *int32 `json:"height"` Thumbnail *string `json:"thumbnail"` Type string `json:"type"` Url string `json:"url"` Width *int32 `json:"width"` }
Image defines model for Image.
type ImageCategory ¶
type ImageCategory string
ImageCategory defines model for Image.Category.
const ( ImageCategoryCHARGER ImageCategory = "CHARGER" ImageCategoryENTRANCE ImageCategory = "ENTRANCE" ImageCategoryLOCATION ImageCategory = "LOCATION" ImageCategoryNETWORK ImageCategory = "NETWORK" ImageCategoryOPERATOR ImageCategory = "OPERATOR" ImageCategoryOTHER ImageCategory = "OTHER" ImageCategoryOWNER ImageCategory = "OWNER" )
Defines values for ImageCategory.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Location ¶
type Location struct { Address string `json:"address"` ChargingWhenClosed *string `json:"charging_when_closed,omitempty"` City string `json:"city"` Coordinates GeoLocation `json:"coordinates"` Country string `json:"country"` CountryCode string `json:"country_code"` Directions *[]DisplayText `json:"directions,omitempty"` EnergyMix *EnergyMix `json:"energy_mix,omitempty"` Evses *[]Evse `json:"evses,omitempty"` Facilities *[]LocationFacilities `json:"facilities,omitempty"` Id string `json:"id"` Images *[]Image `json:"images,omitempty"` LastUpdated string `json:"last_updated"` Name *string `json:"name"` OpeningTimes *Hours `json:"opening_times,omitempty"` Operator *BusinessDetails `json:"operator,omitempty"` Owner *BusinessDetails `json:"owner,omitempty"` ParkingType *LocationParkingType `json:"parking_type"` PartyId string `json:"party_id"` PostalCode *string `json:"postal_code"` Publish bool `json:"publish"` PublishAllowedTo *[]PublishTokenType `json:"publish_allowed_to,omitempty"` RelatedLocations *[]AdditionalGeoLocation `json:"related_locations,omitempty"` State *string `json:"state"` Suboperator *BusinessDetails `json:"suboperator,omitempty"` TimeZone *string `json:"time_zone,omitempty"` }
Location defines model for Location.
type LocationFacilities ¶
type LocationFacilities string
LocationFacilities defines model for Location.Facilities.
const ( LocationFacilitiesAIRPORT LocationFacilities = "AIRPORT" LocationFacilitiesBIKESHARING LocationFacilities = "BIKE_SHARING" LocationFacilitiesBUSSTOP LocationFacilities = "BUS_STOP" LocationFacilitiesCAFE LocationFacilities = "CAFE" LocationFacilitiesCARPOOLPARKING LocationFacilities = "CARPOOL_PARKING" LocationFacilitiesFUELSTATION LocationFacilities = "FUEL_STATION" LocationFacilitiesHOTEL LocationFacilities = "HOTEL" LocationFacilitiesMALL LocationFacilities = "MALL" LocationFacilitiesMETROSTATION LocationFacilities = "METRO_STATION" LocationFacilitiesMUSEUM LocationFacilities = "MUSEUM" LocationFacilitiesNATURE LocationFacilities = "NATURE" LocationFacilitiesPARKINGLOT LocationFacilities = "PARKING_LOT" LocationFacilitiesRECREATIONAREA LocationFacilities = "RECREATION_AREA" LocationFacilitiesRESTAURANT LocationFacilities = "RESTAURANT" LocationFacilitiesSPORT LocationFacilities = "SPORT" LocationFacilitiesSUPERMARKET LocationFacilities = "SUPERMARKET" LocationFacilitiesTAXISTAND LocationFacilities = "TAXI_STAND" LocationFacilitiesTRAINSTATION LocationFacilities = "TRAIN_STATION" LocationFacilitiesTRAMSTOP LocationFacilities = "TRAM_STOP" LocationFacilitiesWIFI LocationFacilities = "WIFI" )
Defines values for LocationFacilities.
type LocationParkingType ¶
type LocationParkingType string
LocationParkingType defines model for Location.ParkingType.
const ( LocationParkingTypeALONGMOTORWAY LocationParkingType = "ALONG_MOTORWAY" LocationParkingTypeONDRIVEWAY LocationParkingType = "ON_DRIVEWAY" LocationParkingTypeONSTREET LocationParkingType = "ON_STREET" LocationParkingTypePARKINGGARAGE LocationParkingType = "PARKING_GARAGE" LocationParkingTypePARKINGLOT LocationParkingType = "PARKING_LOT" LocationParkingTypeUNDERGROUNDGARAGE LocationParkingType = "UNDERGROUND_GARAGE" )
Defines values for LocationParkingType.
type LocationReferences ¶
type LocationReferences struct { ConnectorIds *[]string `json:"connector_ids,omitempty"` EvseUids *[]string `json:"evse_uids,omitempty"` LocationId string `json:"location_id"` }
LocationReferences defines model for LocationReferences.
type OCPI ¶
type OCPI struct {
// contains filtered or unexported fields
}
func (*OCPI) GetVersion ¶
func (o *OCPI) GetVersion(context.Context) (VersionDetail, error)
func (*OCPI) PushLocation ¶
func (*OCPI) RegisterNewParty ¶
func (*OCPI) SetCredentials ¶
func (*OCPI) SetExternalUrl ¶
type OcpiResponse ¶
type OcpiResponse struct { Data *map[string]interface{} `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponse defines model for OcpiResponse.
type OcpiResponseAuthorizationInfo ¶
type OcpiResponseAuthorizationInfo struct { Data *AuthorizationInfo `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseAuthorizationInfo defines model for OcpiResponseAuthorizationInfo.
type OcpiResponseCDR ¶
type OcpiResponseCDR struct { Data *CDR `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseCDR defines model for OcpiResponseCDR.
type OcpiResponseCDRList ¶
type OcpiResponseCDRList struct { Data *[]CDR `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseCDRList defines model for OcpiResponseCDRList.
type OcpiResponseChargingPreferencesResponse ¶
type OcpiResponseChargingPreferencesResponse struct { Data *OcpiResponseChargingPreferencesResponseData `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseChargingPreferencesResponse defines model for OcpiResponseChargingPreferencesResponse.
type OcpiResponseChargingPreferencesResponseData ¶
type OcpiResponseChargingPreferencesResponseData string
OcpiResponseChargingPreferencesResponseData defines model for OcpiResponseChargingPreferencesResponse.Data.
const ( ACCEPTED OcpiResponseChargingPreferencesResponseData = "ACCEPTED" DEPARTUREREQUIRED OcpiResponseChargingPreferencesResponseData = "DEPARTURE_REQUIRED" ENERGYNEEDREQUIRED OcpiResponseChargingPreferencesResponseData = "ENERGY_NEED_REQUIRED" NOTPOSSIBLE OcpiResponseChargingPreferencesResponseData = "NOT_POSSIBLE" PROFILETYPENOTSUPPORTED OcpiResponseChargingPreferencesResponseData = "PROFILE_TYPE_NOT_SUPPORTED" )
Defines values for OcpiResponseChargingPreferencesResponseData.
type OcpiResponseChargingProfileResponse ¶
type OcpiResponseChargingProfileResponse struct { Data *ChargingProfileResponse `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseChargingProfileResponse defines model for OcpiResponseChargingProfileResponse.
type OcpiResponseCommandResponse ¶
type OcpiResponseCommandResponse struct { Data *CommandResponse `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseCommandResponse defines model for OcpiResponseCommandResponse.
func (OcpiResponseCommandResponse) Render ¶
func (OcpiResponseCommandResponse) Render(http.ResponseWriter, *http.Request) error
type OcpiResponseConnector ¶
type OcpiResponseConnector struct { Data *Connector `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseConnector defines model for OcpiResponseConnector.
type OcpiResponseCredentials ¶
type OcpiResponseCredentials struct { Data *Credentials `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseCredentials defines model for OcpiResponseCredentials.
type OcpiResponseEvse ¶
type OcpiResponseEvse struct { Data *Evse `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseEvse defines model for OcpiResponseEvse.
type OcpiResponseListVersion ¶
type OcpiResponseListVersion struct { Data *[]Version `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseListVersion defines model for OcpiResponseListVersion.
func (OcpiResponseListVersion) Render ¶
func (OcpiResponseListVersion) Render(http.ResponseWriter, *http.Request) error
type OcpiResponseLocation ¶
type OcpiResponseLocation struct { Data *Location `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseLocation defines model for OcpiResponseLocation.
type OcpiResponseLocationList ¶
type OcpiResponseLocationList struct { Data *[]Location `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseLocationList defines model for OcpiResponseLocationList.
type OcpiResponseSession ¶
type OcpiResponseSession struct { Data *Session `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseSession defines model for OcpiResponseSession.
type OcpiResponseSessionList ¶
type OcpiResponseSessionList struct { Data *[]Session `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseSessionList defines model for OcpiResponseSessionList.
type OcpiResponseTariff ¶
type OcpiResponseTariff struct { Data *Tariff `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseTariff defines model for OcpiResponseTariff.
type OcpiResponseTariffList ¶
type OcpiResponseTariffList struct { Data *[]Tariff `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseTariffList defines model for OcpiResponseTariffList.
type OcpiResponseToken ¶
type OcpiResponseToken struct { Data *Token `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseToken defines model for OcpiResponseToken.
func (OcpiResponseToken) Render ¶
func (OcpiResponseToken) Render(http.ResponseWriter, *http.Request) error
type OcpiResponseTokenList ¶
type OcpiResponseTokenList struct { Data *[]Token `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseTokenList defines model for OcpiResponseTokenList.
type OcpiResponseUnit ¶
type OcpiResponseUnit struct { Data *Unit `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseUnit defines model for OcpiResponseUnit.
type OcpiResponseVersionDetail ¶
type OcpiResponseVersionDetail struct { Data *VersionDetail `json:"data,omitempty"` StatusCode int32 `json:"status_code"` StatusMessage *string `json:"status_message,omitempty"` Timestamp string `json:"timestamp"` }
OcpiResponseVersionDetail defines model for OcpiResponseVersionDetail.
func (OcpiResponseVersionDetail) Render ¶
func (OcpiResponseVersionDetail) Render(http.ResponseWriter, *http.Request) error
type PatchClientOwnedConnectorJSONBody ¶
PatchClientOwnedConnectorJSONBody defines parameters for PatchClientOwnedConnector.
type PatchClientOwnedConnectorJSONRequestBody ¶
type PatchClientOwnedConnectorJSONRequestBody PatchClientOwnedConnectorJSONBody
PatchClientOwnedConnectorJSONRequestBody defines body for PatchClientOwnedConnector for application/json ContentType.
type PatchClientOwnedConnectorParams ¶
type PatchClientOwnedConnectorParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PatchClientOwnedConnectorParams defines parameters for PatchClientOwnedConnector.
type PatchClientOwnedEvseJSONBody ¶
PatchClientOwnedEvseJSONBody defines parameters for PatchClientOwnedEvse.
type PatchClientOwnedEvseJSONRequestBody ¶
type PatchClientOwnedEvseJSONRequestBody PatchClientOwnedEvseJSONBody
PatchClientOwnedEvseJSONRequestBody defines body for PatchClientOwnedEvse for application/json ContentType.
type PatchClientOwnedEvseParams ¶
type PatchClientOwnedEvseParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PatchClientOwnedEvseParams defines parameters for PatchClientOwnedEvse.
type PatchClientOwnedLocationJSONBody ¶
PatchClientOwnedLocationJSONBody defines parameters for PatchClientOwnedLocation.
type PatchClientOwnedLocationJSONRequestBody ¶
type PatchClientOwnedLocationJSONRequestBody PatchClientOwnedLocationJSONBody
PatchClientOwnedLocationJSONRequestBody defines body for PatchClientOwnedLocation for application/json ContentType.
type PatchClientOwnedLocationParams ¶
type PatchClientOwnedLocationParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PatchClientOwnedLocationParams defines parameters for PatchClientOwnedLocation.
type PatchClientOwnedSessionJSONBody ¶
PatchClientOwnedSessionJSONBody defines parameters for PatchClientOwnedSession.
type PatchClientOwnedSessionJSONRequestBody ¶
type PatchClientOwnedSessionJSONRequestBody PatchClientOwnedSessionJSONBody
PatchClientOwnedSessionJSONRequestBody defines body for PatchClientOwnedSession for application/json ContentType.
type PatchClientOwnedSessionParams ¶
type PatchClientOwnedSessionParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PatchClientOwnedSessionParams defines parameters for PatchClientOwnedSession.
type PatchClientOwnedTokenJSONBody ¶
PatchClientOwnedTokenJSONBody defines parameters for PatchClientOwnedToken.
type PatchClientOwnedTokenJSONRequestBody ¶
type PatchClientOwnedTokenJSONRequestBody PatchClientOwnedTokenJSONBody
PatchClientOwnedTokenJSONRequestBody defines body for PatchClientOwnedToken for application/json ContentType.
type PatchClientOwnedTokenParams ¶
type PatchClientOwnedTokenParams struct { Type *PatchClientOwnedTokenParamsType `form:"type,omitempty" json:"type,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PatchClientOwnedTokenParams defines parameters for PatchClientOwnedToken.
type PatchClientOwnedTokenParamsType ¶
type PatchClientOwnedTokenParamsType string
PatchClientOwnedTokenParamsType defines parameters for PatchClientOwnedToken.
const ( PatchClientOwnedTokenParamsTypeADHOCUSER PatchClientOwnedTokenParamsType = "AD_HOC_USER" PatchClientOwnedTokenParamsTypeAPPUSER PatchClientOwnedTokenParamsType = "APP_USER" PatchClientOwnedTokenParamsTypeOTHER PatchClientOwnedTokenParamsType = "OTHER" PatchClientOwnedTokenParamsTypeRFID PatchClientOwnedTokenParamsType = "RFID" )
Defines values for PatchClientOwnedTokenParamsType.
type PostAsyncResponseJSONRequestBody ¶
type PostAsyncResponseJSONRequestBody = CommandResult
PostAsyncResponseJSONRequestBody defines body for PostAsyncResponse for application/json ContentType.
type PostAsyncResponseParams ¶
type PostAsyncResponseParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostAsyncResponseParams defines parameters for PostAsyncResponse.
type PostAsyncResponseParamsCommand ¶
type PostAsyncResponseParamsCommand string
PostAsyncResponseParamsCommand defines parameters for PostAsyncResponse.
const ( CANCELRESERVATION PostAsyncResponseParamsCommand = "CANCEL_RESERVATION" RESERVENOW PostAsyncResponseParamsCommand = "RESERVE_NOW" STARTSESSION PostAsyncResponseParamsCommand = "START_SESSION" STOPSESSION PostAsyncResponseParamsCommand = "STOP_SESSION" UNLOCKCONNECTOR PostAsyncResponseParamsCommand = "UNLOCK_CONNECTOR" )
Defines values for PostAsyncResponseParamsCommand.
type PostCancelReservationJSONRequestBody ¶
type PostCancelReservationJSONRequestBody = CancelReservation
PostCancelReservationJSONRequestBody defines body for PostCancelReservation for application/json ContentType.
type PostCancelReservationParams ¶
type PostCancelReservationParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostCancelReservationParams defines parameters for PostCancelReservation.
type PostClientOwnedCdrJSONRequestBody ¶
type PostClientOwnedCdrJSONRequestBody = CDR
PostClientOwnedCdrJSONRequestBody defines body for PostClientOwnedCdr for application/json ContentType.
type PostClientOwnedCdrParams ¶
type PostClientOwnedCdrParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostClientOwnedCdrParams defines parameters for PostClientOwnedCdr.
type PostCredentialsJSONRequestBody ¶
type PostCredentialsJSONRequestBody = Credentials
PostCredentialsJSONRequestBody defines body for PostCredentials for application/json ContentType.
type PostCredentialsParams ¶
type PostCredentialsParams struct {
Authorization string `json:"Authorization"`
}
PostCredentialsParams defines parameters for PostCredentials.
type PostGenericChargingProfileResultJSONRequestBody ¶
type PostGenericChargingProfileResultJSONRequestBody = GenericChargingProfileResult
PostGenericChargingProfileResultJSONRequestBody defines body for PostGenericChargingProfileResult for application/json ContentType.
type PostGenericChargingProfileResultParams ¶
type PostGenericChargingProfileResultParams struct { Authorization string `json:"Authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostGenericChargingProfileResultParams defines parameters for PostGenericChargingProfileResult.
type PostRealTimeTokenAuthorizationJSONRequestBody ¶
type PostRealTimeTokenAuthorizationJSONRequestBody = LocationReferences
PostRealTimeTokenAuthorizationJSONRequestBody defines body for PostRealTimeTokenAuthorization for application/json ContentType.
type PostRealTimeTokenAuthorizationParams ¶
type PostRealTimeTokenAuthorizationParams struct { Type *PostRealTimeTokenAuthorizationParamsType `form:"type,omitempty" json:"type,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostRealTimeTokenAuthorizationParams defines parameters for PostRealTimeTokenAuthorization.
type PostRealTimeTokenAuthorizationParamsType ¶
type PostRealTimeTokenAuthorizationParamsType string
PostRealTimeTokenAuthorizationParamsType defines parameters for PostRealTimeTokenAuthorization.
const ( ADHOCUSER PostRealTimeTokenAuthorizationParamsType = "AD_HOC_USER" APPUSER PostRealTimeTokenAuthorizationParamsType = "APP_USER" OTHER PostRealTimeTokenAuthorizationParamsType = "OTHER" RFID PostRealTimeTokenAuthorizationParamsType = "RFID" )
Defines values for PostRealTimeTokenAuthorizationParamsType.
type PostReserveNowJSONRequestBody ¶
type PostReserveNowJSONRequestBody = ReserveNow
PostReserveNowJSONRequestBody defines body for PostReserveNow for application/json ContentType.
type PostReserveNowParams ¶
type PostReserveNowParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostReserveNowParams defines parameters for PostReserveNow.
type PostStartSessionJSONRequestBody ¶
type PostStartSessionJSONRequestBody = StartSession
PostStartSessionJSONRequestBody defines body for PostStartSession for application/json ContentType.
type PostStartSessionParams ¶
type PostStartSessionParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostStartSessionParams defines parameters for PostStartSession.
type PostStopSessionJSONRequestBody ¶
type PostStopSessionJSONRequestBody = StopSession
PostStopSessionJSONRequestBody defines body for PostStopSession for application/json ContentType.
type PostStopSessionParams ¶
type PostStopSessionParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostStopSessionParams defines parameters for PostStopSession.
type PostUnlockConnectorJSONRequestBody ¶
type PostUnlockConnectorJSONRequestBody = UnlockConnector
PostUnlockConnectorJSONRequestBody defines body for PostUnlockConnector for application/json ContentType.
type PostUnlockConnectorParams ¶
type PostUnlockConnectorParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PostUnlockConnectorParams defines parameters for PostUnlockConnector.
type PriceComponent ¶
type PriceComponent struct { Price float32 `json:"price"` StepSize int32 `json:"step_size"` Type PriceComponentType `json:"type"` Vat *float32 `json:"vat,omitempty"` }
PriceComponent defines model for PriceComponent.
type PriceComponentType ¶
type PriceComponentType string
PriceComponentType defines model for PriceComponent.Type.
const ( PriceComponentTypeENERGY PriceComponentType = "ENERGY" PriceComponentTypeFLAT PriceComponentType = "FLAT" PriceComponentTypePARKINGTIME PriceComponentType = "PARKING_TIME" PriceComponentTypeTIME PriceComponentType = "TIME" )
Defines values for PriceComponentType.
type PublishTokenType ¶
type PublishTokenType struct { GroupId *string `json:"group_id ,omitempty"` Issuer *string `json:"issuer,omitempty"` Type *PublishTokenTypeType `json:"type,omitempty"` Uid *string `json:"uid,omitempty"` VisualNumber *string `json:"visual_number,omitempty"` }
PublishTokenType defines model for PublishTokenType.
type PublishTokenTypeType ¶
type PublishTokenTypeType string
PublishTokenTypeType defines model for PublishTokenType.Type.
const ( PublishTokenTypeTypeADHOCUSER PublishTokenTypeType = "AD_HOC_USER" PublishTokenTypeTypeAPPUSER PublishTokenTypeType = "APP_USER" PublishTokenTypeTypeOTHER PublishTokenTypeType = "OTHER" PublishTokenTypeTypeRFID PublishTokenTypeType = "RFID" )
Defines values for PublishTokenTypeType.
type PutChargingPreferencesJSONRequestBody ¶
type PutChargingPreferencesJSONRequestBody = ChargingPreferences
PutChargingPreferencesJSONRequestBody defines body for PutChargingPreferences for application/json ContentType.
type PutChargingPreferencesParams ¶
type PutChargingPreferencesParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutChargingPreferencesParams defines parameters for PutChargingPreferences.
type PutClientOwnedConnectorJSONRequestBody ¶
type PutClientOwnedConnectorJSONRequestBody = Connector
PutClientOwnedConnectorJSONRequestBody defines body for PutClientOwnedConnector for application/json ContentType.
type PutClientOwnedConnectorParams ¶
type PutClientOwnedConnectorParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedConnectorParams defines parameters for PutClientOwnedConnector.
type PutClientOwnedEvseJSONRequestBody ¶
type PutClientOwnedEvseJSONRequestBody = Evse
PutClientOwnedEvseJSONRequestBody defines body for PutClientOwnedEvse for application/json ContentType.
type PutClientOwnedEvseParams ¶
type PutClientOwnedEvseParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedEvseParams defines parameters for PutClientOwnedEvse.
type PutClientOwnedLocationJSONRequestBody ¶
type PutClientOwnedLocationJSONRequestBody = Location
PutClientOwnedLocationJSONRequestBody defines body for PutClientOwnedLocation for application/json ContentType.
type PutClientOwnedLocationParams ¶
type PutClientOwnedLocationParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedLocationParams defines parameters for PutClientOwnedLocation.
type PutClientOwnedSessionJSONRequestBody ¶
type PutClientOwnedSessionJSONRequestBody = Session
PutClientOwnedSessionJSONRequestBody defines body for PutClientOwnedSession for application/json ContentType.
type PutClientOwnedSessionParams ¶
type PutClientOwnedSessionParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedSessionParams defines parameters for PutClientOwnedSession.
type PutClientOwnedTariffJSONRequestBody ¶
type PutClientOwnedTariffJSONRequestBody = Tariff
PutClientOwnedTariffJSONRequestBody defines body for PutClientOwnedTariff for application/json ContentType.
type PutClientOwnedTariffParams ¶
type PutClientOwnedTariffParams struct { Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedTariffParams defines parameters for PutClientOwnedTariff.
type PutClientOwnedTokenJSONRequestBody ¶
type PutClientOwnedTokenJSONRequestBody = Token
PutClientOwnedTokenJSONRequestBody defines body for PutClientOwnedToken for application/json ContentType.
type PutClientOwnedTokenParams ¶
type PutClientOwnedTokenParams struct { Type *PutClientOwnedTokenParamsType `form:"type,omitempty" json:"type,omitempty"` Authorization string `json:"authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutClientOwnedTokenParams defines parameters for PutClientOwnedToken.
type PutClientOwnedTokenParamsType ¶
type PutClientOwnedTokenParamsType string
PutClientOwnedTokenParamsType defines parameters for PutClientOwnedToken.
const ( PutClientOwnedTokenParamsTypeADHOCUSER PutClientOwnedTokenParamsType = "AD_HOC_USER" PutClientOwnedTokenParamsTypeAPPUSER PutClientOwnedTokenParamsType = "APP_USER" PutClientOwnedTokenParamsTypeOTHER PutClientOwnedTokenParamsType = "OTHER" PutClientOwnedTokenParamsTypeRFID PutClientOwnedTokenParamsType = "RFID" )
Defines values for PutClientOwnedTokenParamsType.
type PutCredentialsJSONRequestBody ¶
type PutCredentialsJSONRequestBody = Credentials
PutCredentialsJSONRequestBody defines body for PutCredentials for application/json ContentType.
type PutCredentialsParams ¶
type PutCredentialsParams struct {
Authorization string `json:"Authorization"`
}
PutCredentialsParams defines parameters for PutCredentials.
type PutReceiverChargingProfileJSONRequestBody ¶
type PutReceiverChargingProfileJSONRequestBody = SetChargingProfile
PutReceiverChargingProfileJSONRequestBody defines body for PutReceiverChargingProfile for application/json ContentType.
type PutReceiverChargingProfileParams ¶
type PutReceiverChargingProfileParams struct { Authorization string `json:"Authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutReceiverChargingProfileParams defines parameters for PutReceiverChargingProfile.
type PutSenderChargingProfileJSONRequestBody ¶
type PutSenderChargingProfileJSONRequestBody = ActiveChargingProfile
PutSenderChargingProfileJSONRequestBody defines body for PutSenderChargingProfile for application/json ContentType.
type PutSenderChargingProfileParams ¶
type PutSenderChargingProfileParams struct { Authorization string `json:"Authorization"` XRequestID string `json:"X-Request-ID"` XCorrelationID string `json:"X-Correlation-ID"` OCPIFromCountryCode string `json:"OCPI-from-country-code"` OCPIFromPartyId string `json:"OCPI-from-party-id"` OCPIToCountryCode string `json:"OCPI-to-country-code"` OCPIToPartyId string `json:"OCPI-to-party-id"` }
PutSenderChargingProfileParams defines parameters for PutSenderChargingProfile.
type RegularHours ¶
type RegularHours struct { PeriodBegin string `json:"period_begin"` PeriodEnd string `json:"period_end"` Weekday int32 `json:"weekday"` }
RegularHours defines model for RegularHours.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ReserveNow ¶
type ReserveNow struct { AuthorizationReference *string `json:"authorization_reference,omitempty"` EvseUid *string `json:"evse_uid,omitempty"` ExpiryDate string `json:"expiry_date"` LocationId string `json:"location_id"` ReservationId string `json:"reservation_id"` ResponseUrl string `json:"response_url"` Token Token `json:"token"` }
ReserveNow defines model for ReserveNow.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ocpi Api, clock clock.PassiveClock, v16CallMaker *handlers.OcppCallMaker) (*Server, error)
func (*Server) DeleteClientOwnedTariff ¶
func (s *Server) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params DeleteClientOwnedTariffParams)
func (*Server) DeleteCredentials ¶
func (s *Server) DeleteCredentials(w http.ResponseWriter, r *http.Request, params DeleteCredentialsParams)
func (*Server) DeleteReceiverChargingProfile ¶
func (s *Server) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params DeleteReceiverChargingProfileParams)
func (*Server) GetCdrPageFromDataOwner ¶
func (s *Server) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetCdrPageFromDataOwnerParams)
func (*Server) GetCdrsFromDataOwner ¶
func (s *Server) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetCdrsFromDataOwnerParams)
func (*Server) GetClientOwnedCdr ¶
func (s *Server) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request, cdrID string, params GetClientOwnedCdrParams)
func (*Server) GetClientOwnedConnector ¶
func (*Server) GetClientOwnedEvse ¶
func (s *Server) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params GetClientOwnedEvseParams)
func (*Server) GetClientOwnedLocation ¶
func (s *Server) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params GetClientOwnedLocationParams)
func (*Server) GetClientOwnedSession ¶
func (s *Server) GetClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params GetClientOwnedSessionParams)
func (*Server) GetClientOwnedTariff ¶
func (s *Server) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params GetClientOwnedTariffParams)
func (*Server) GetClientOwnedToken ¶
func (s *Server) GetClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params GetClientOwnedTokenParams)
func (*Server) GetConnectorObjectFromDataOwner ¶
func (s *Server) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, connectorID string, params GetConnectorObjectFromDataOwnerParams)
func (*Server) GetCredentials ¶
func (s *Server) GetCredentials(w http.ResponseWriter, r *http.Request, params GetCredentialsParams)
func (*Server) GetEvseObjectFromDataOwner ¶
func (s *Server) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, params GetEvseObjectFromDataOwnerParams)
func (*Server) GetLocationListFromDataOwner ¶
func (s *Server) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request, params GetLocationListFromDataOwnerParams)
func (*Server) GetLocationObjectFromDataOwner ¶
func (s *Server) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, params GetLocationObjectFromDataOwnerParams)
func (*Server) GetLocationPageFromDataOwner ¶
func (s *Server) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetLocationPageFromDataOwnerParams)
func (*Server) GetReceiverChargingProfile ¶
func (s *Server) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params GetReceiverChargingProfileParams)
func (*Server) GetSessionsFromDataOwner ¶
func (s *Server) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetSessionsFromDataOwnerParams)
func (*Server) GetSessionsPageFromDataOwner ¶
func (s *Server) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetSessionsPageFromDataOwnerParams)
func (*Server) GetTariffsFromDataOwner ¶
func (s *Server) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTariffsFromDataOwnerParams)
func (*Server) GetTariffsPageFromDataOwner ¶
func (s *Server) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTariffsPageFromDataOwnerParams)
func (*Server) GetTokensFromDataOwner ¶
func (s *Server) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTokensFromDataOwnerParams)
func (*Server) GetTokensPageFromDataOwner ¶
func (s *Server) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTokensPageFromDataOwnerParams)
func (*Server) GetVersion ¶
func (s *Server) GetVersion(w http.ResponseWriter, r *http.Request, params GetVersionParams)
func (*Server) GetVersions ¶
func (s *Server) GetVersions(w http.ResponseWriter, r *http.Request, params GetVersionsParams)
func (*Server) PatchClientOwnedConnector ¶
func (*Server) PatchClientOwnedEvse ¶
func (s *Server) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PatchClientOwnedEvseParams)
func (*Server) PatchClientOwnedLocation ¶
func (s *Server) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PatchClientOwnedLocationParams)
func (*Server) PatchClientOwnedSession ¶
func (s *Server) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PatchClientOwnedSessionParams)
func (*Server) PatchClientOwnedToken ¶
func (s *Server) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PatchClientOwnedTokenParams)
func (*Server) PostAsyncResponse ¶
func (s *Server) PostAsyncResponse(w http.ResponseWriter, r *http.Request, command PostAsyncResponseParamsCommand, uid string, params PostAsyncResponseParams)
func (*Server) PostCancelReservation ¶
func (s *Server) PostCancelReservation(w http.ResponseWriter, r *http.Request, params PostCancelReservationParams)
func (*Server) PostClientOwnedCdr ¶
func (s *Server) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request, params PostClientOwnedCdrParams)
func (*Server) PostCredentials ¶
func (s *Server) PostCredentials(w http.ResponseWriter, r *http.Request, params PostCredentialsParams)
func (*Server) PostGenericChargingProfileResult ¶
func (s *Server) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request, uid string, params PostGenericChargingProfileResultParams)
func (*Server) PostRealTimeTokenAuthorization ¶
func (s *Server) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request, tokenUID string, params PostRealTimeTokenAuthorizationParams)
func (*Server) PostReserveNow ¶
func (s *Server) PostReserveNow(w http.ResponseWriter, r *http.Request, params PostReserveNowParams)
func (*Server) PostStartSession ¶
func (s *Server) PostStartSession(w http.ResponseWriter, r *http.Request, params PostStartSessionParams)
func (*Server) PostStopSession ¶
func (s *Server) PostStopSession(w http.ResponseWriter, r *http.Request, params PostStopSessionParams)
func (*Server) PostUnlockConnector ¶
func (s *Server) PostUnlockConnector(w http.ResponseWriter, r *http.Request, params PostUnlockConnectorParams)
func (*Server) PutChargingPreferences ¶
func (s *Server) PutChargingPreferences(w http.ResponseWriter, r *http.Request, sessionID string, params PutChargingPreferencesParams)
func (*Server) PutClientOwnedConnector ¶
func (*Server) PutClientOwnedEvse ¶
func (s *Server) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PutClientOwnedEvseParams)
func (*Server) PutClientOwnedLocation ¶
func (s *Server) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PutClientOwnedLocationParams)
func (*Server) PutClientOwnedSession ¶
func (s *Server) PutClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PutClientOwnedSessionParams)
func (*Server) PutClientOwnedTariff ¶
func (s *Server) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params PutClientOwnedTariffParams)
func (*Server) PutClientOwnedToken ¶
func (s *Server) PutClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PutClientOwnedTokenParams)
func (*Server) PutCredentials ¶
func (s *Server) PutCredentials(w http.ResponseWriter, r *http.Request, params PutCredentialsParams)
func (*Server) PutReceiverChargingProfile ¶
func (s *Server) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutReceiverChargingProfileParams)
func (*Server) PutSenderChargingProfile ¶
func (s *Server) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutSenderChargingProfileParams)
type ServerInterface ¶
type ServerInterface interface { // (GET /ocpi/2.2) GetVersion(w http.ResponseWriter, r *http.Request, params GetVersionParams) // (DELETE /ocpi/2.2/credentials) DeleteCredentials(w http.ResponseWriter, r *http.Request, params DeleteCredentialsParams) // (GET /ocpi/2.2/credentials) GetCredentials(w http.ResponseWriter, r *http.Request, params GetCredentialsParams) // (POST /ocpi/2.2/credentials) PostCredentials(w http.ResponseWriter, r *http.Request, params PostCredentialsParams) // (PUT /ocpi/2.2/credentials) PutCredentials(w http.ResponseWriter, r *http.Request, params PutCredentialsParams) // (DELETE /ocpi/2.2/receiver/chargingprofiles/{sessionId}) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params DeleteReceiverChargingProfileParams) // (GET /ocpi/2.2/receiver/chargingprofiles/{sessionId}) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params GetReceiverChargingProfileParams) // (PUT /ocpi/2.2/receiver/chargingprofiles/{sessionId}) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutReceiverChargingProfileParams) // (POST /ocpi/2.2/sender/chargingprofiles/result/{uid}) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request, uid string, params PostGenericChargingProfileResultParams) // (PUT /ocpi/2.2/sender/chargingprofiles/{sessionId}) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutSenderChargingProfileParams) // (POST /ocpi/receiver/2.2/cdrs) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request, params PostClientOwnedCdrParams) // (GET /ocpi/receiver/2.2/cdrs/{cdrID}) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request, cdrID string, params GetClientOwnedCdrParams) // (POST /ocpi/receiver/2.2/commands/CANCEL_RESERVATION) PostCancelReservation(w http.ResponseWriter, r *http.Request, params PostCancelReservationParams) // (POST /ocpi/receiver/2.2/commands/RESERVE_NOW) PostReserveNow(w http.ResponseWriter, r *http.Request, params PostReserveNowParams) // (POST /ocpi/receiver/2.2/commands/START_SESSION) PostStartSession(w http.ResponseWriter, r *http.Request, params PostStartSessionParams) // (POST /ocpi/receiver/2.2/commands/STOP_SESSION) PostStopSession(w http.ResponseWriter, r *http.Request, params PostStopSessionParams) // (POST /ocpi/receiver/2.2/commands/UNLOCK_CONNECTOR) PostUnlockConnector(w http.ResponseWriter, r *http.Request, params PostUnlockConnectorParams) // (GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params GetClientOwnedLocationParams) // (PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PatchClientOwnedLocationParams) // (PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PutClientOwnedLocationParams) // (GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params GetClientOwnedEvseParams) // (PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PatchClientOwnedEvseParams) // (PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PutClientOwnedEvseParams) // (GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID}) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params GetClientOwnedConnectorParams) // (PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID}) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params PatchClientOwnedConnectorParams) // (PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID}) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params PutClientOwnedConnectorParams) // (GET /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID}) GetClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params GetClientOwnedSessionParams) // (PATCH /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID}) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PatchClientOwnedSessionParams) // (PUT /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID}) PutClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PutClientOwnedSessionParams) // (DELETE /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID}) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params DeleteClientOwnedTariffParams) // (GET /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID}) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params GetClientOwnedTariffParams) // (PUT /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID}) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params PutClientOwnedTariffParams) // (GET /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID}) GetClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params GetClientOwnedTokenParams) // (PATCH /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID}) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PatchClientOwnedTokenParams) // (PUT /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID}) PutClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PutClientOwnedTokenParams) // (GET /ocpi/sender/2.2/cdrs) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetCdrsFromDataOwnerParams) // (GET /ocpi/sender/2.2/cdrs/page/{uid}) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetCdrPageFromDataOwnerParams) // (POST /ocpi/sender/2.2/commands/{command}/{uid}) PostAsyncResponse(w http.ResponseWriter, r *http.Request, command PostAsyncResponseParamsCommand, uid string, params PostAsyncResponseParams) // (GET /ocpi/sender/2.2/locations) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request, params GetLocationListFromDataOwnerParams) // (GET /ocpi/sender/2.2/locations/page/{uid}) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetLocationPageFromDataOwnerParams) // (GET /ocpi/sender/2.2/locations/{locationID}) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, params GetLocationObjectFromDataOwnerParams) // (GET /ocpi/sender/2.2/locations/{locationID}/{evseUID}) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, params GetEvseObjectFromDataOwnerParams) // (GET /ocpi/sender/2.2/locations/{locationID}/{evseUID}/{connectorID}) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, connectorID string, params GetConnectorObjectFromDataOwnerParams) // (GET /ocpi/sender/2.2/sessions) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetSessionsFromDataOwnerParams) // (GET /ocpi/sender/2.2/sessions/page/{uid}) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetSessionsPageFromDataOwnerParams) // (PUT /ocpi/sender/2.2/sessions/{sessionID}/charging_preferences) PutChargingPreferences(w http.ResponseWriter, r *http.Request, sessionID string, params PutChargingPreferencesParams) // (GET /ocpi/sender/2.2/tariffs) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTariffsFromDataOwnerParams) // (GET /ocpi/sender/2.2/tariffs/page/{uid}) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTariffsPageFromDataOwnerParams) // (GET /ocpi/sender/2.2/tokens) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTokensFromDataOwnerParams) // (GET /ocpi/sender/2.2/tokens/page/{uid}) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTokensPageFromDataOwnerParams) // (POST /ocpi/sender/2.2/tokens/{tokenUID}/authorize) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request, tokenUID string, params PostRealTimeTokenAuthorizationParams) // (GET /ocpi/versions) GetVersions(w http.ResponseWriter, r *http.Request, params GetVersionsParams) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteClientOwnedTariff ¶
func (siw *ServerInterfaceWrapper) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request)
DeleteClientOwnedTariff operation middleware
func (*ServerInterfaceWrapper) DeleteCredentials ¶
func (siw *ServerInterfaceWrapper) DeleteCredentials(w http.ResponseWriter, r *http.Request)
DeleteCredentials operation middleware
func (*ServerInterfaceWrapper) DeleteReceiverChargingProfile ¶
func (siw *ServerInterfaceWrapper) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
DeleteReceiverChargingProfile operation middleware
func (*ServerInterfaceWrapper) GetCdrPageFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request)
GetCdrPageFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetCdrsFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request)
GetCdrsFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedCdr ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request)
GetClientOwnedCdr operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedConnector ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request)
GetClientOwnedConnector operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedEvse ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request)
GetClientOwnedEvse operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedLocation ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request)
GetClientOwnedLocation operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedSession ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedSession(w http.ResponseWriter, r *http.Request)
GetClientOwnedSession operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedTariff ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request)
GetClientOwnedTariff operation middleware
func (*ServerInterfaceWrapper) GetClientOwnedToken ¶
func (siw *ServerInterfaceWrapper) GetClientOwnedToken(w http.ResponseWriter, r *http.Request)
GetClientOwnedToken operation middleware
func (*ServerInterfaceWrapper) GetConnectorObjectFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
GetConnectorObjectFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetCredentials ¶
func (siw *ServerInterfaceWrapper) GetCredentials(w http.ResponseWriter, r *http.Request)
GetCredentials operation middleware
func (*ServerInterfaceWrapper) GetEvseObjectFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
GetEvseObjectFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetLocationListFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request)
GetLocationListFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetLocationObjectFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request)
GetLocationObjectFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetLocationPageFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request)
GetLocationPageFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetReceiverChargingProfile ¶
func (siw *ServerInterfaceWrapper) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
GetReceiverChargingProfile operation middleware
func (*ServerInterfaceWrapper) GetSessionsFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request)
GetSessionsFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetSessionsPageFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request)
GetSessionsPageFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetTariffsFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request)
GetTariffsFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetTariffsPageFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request)
GetTariffsPageFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetTokensFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request)
GetTokensFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetTokensPageFromDataOwner ¶
func (siw *ServerInterfaceWrapper) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request)
GetTokensPageFromDataOwner operation middleware
func (*ServerInterfaceWrapper) GetVersion ¶
func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
GetVersion operation middleware
func (*ServerInterfaceWrapper) GetVersions ¶
func (siw *ServerInterfaceWrapper) GetVersions(w http.ResponseWriter, r *http.Request)
GetVersions operation middleware
func (*ServerInterfaceWrapper) PatchClientOwnedConnector ¶
func (siw *ServerInterfaceWrapper) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request)
PatchClientOwnedConnector operation middleware
func (*ServerInterfaceWrapper) PatchClientOwnedEvse ¶
func (siw *ServerInterfaceWrapper) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request)
PatchClientOwnedEvse operation middleware
func (*ServerInterfaceWrapper) PatchClientOwnedLocation ¶
func (siw *ServerInterfaceWrapper) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request)
PatchClientOwnedLocation operation middleware
func (*ServerInterfaceWrapper) PatchClientOwnedSession ¶
func (siw *ServerInterfaceWrapper) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request)
PatchClientOwnedSession operation middleware
func (*ServerInterfaceWrapper) PatchClientOwnedToken ¶
func (siw *ServerInterfaceWrapper) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request)
PatchClientOwnedToken operation middleware
func (*ServerInterfaceWrapper) PostAsyncResponse ¶
func (siw *ServerInterfaceWrapper) PostAsyncResponse(w http.ResponseWriter, r *http.Request)
PostAsyncResponse operation middleware
func (*ServerInterfaceWrapper) PostCancelReservation ¶
func (siw *ServerInterfaceWrapper) PostCancelReservation(w http.ResponseWriter, r *http.Request)
PostCancelReservation operation middleware
func (*ServerInterfaceWrapper) PostClientOwnedCdr ¶
func (siw *ServerInterfaceWrapper) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request)
PostClientOwnedCdr operation middleware
func (*ServerInterfaceWrapper) PostCredentials ¶
func (siw *ServerInterfaceWrapper) PostCredentials(w http.ResponseWriter, r *http.Request)
PostCredentials operation middleware
func (*ServerInterfaceWrapper) PostGenericChargingProfileResult ¶
func (siw *ServerInterfaceWrapper) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request)
PostGenericChargingProfileResult operation middleware
func (*ServerInterfaceWrapper) PostRealTimeTokenAuthorization ¶
func (siw *ServerInterfaceWrapper) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request)
PostRealTimeTokenAuthorization operation middleware
func (*ServerInterfaceWrapper) PostReserveNow ¶
func (siw *ServerInterfaceWrapper) PostReserveNow(w http.ResponseWriter, r *http.Request)
PostReserveNow operation middleware
func (*ServerInterfaceWrapper) PostStartSession ¶
func (siw *ServerInterfaceWrapper) PostStartSession(w http.ResponseWriter, r *http.Request)
PostStartSession operation middleware
func (*ServerInterfaceWrapper) PostStopSession ¶
func (siw *ServerInterfaceWrapper) PostStopSession(w http.ResponseWriter, r *http.Request)
PostStopSession operation middleware
func (*ServerInterfaceWrapper) PostUnlockConnector ¶
func (siw *ServerInterfaceWrapper) PostUnlockConnector(w http.ResponseWriter, r *http.Request)
PostUnlockConnector operation middleware
func (*ServerInterfaceWrapper) PutChargingPreferences ¶
func (siw *ServerInterfaceWrapper) PutChargingPreferences(w http.ResponseWriter, r *http.Request)
PutChargingPreferences operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedConnector ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request)
PutClientOwnedConnector operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedEvse ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request)
PutClientOwnedEvse operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedLocation ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request)
PutClientOwnedLocation operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedSession ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedSession(w http.ResponseWriter, r *http.Request)
PutClientOwnedSession operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedTariff ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request)
PutClientOwnedTariff operation middleware
func (*ServerInterfaceWrapper) PutClientOwnedToken ¶
func (siw *ServerInterfaceWrapper) PutClientOwnedToken(w http.ResponseWriter, r *http.Request)
PutClientOwnedToken operation middleware
func (*ServerInterfaceWrapper) PutCredentials ¶
func (siw *ServerInterfaceWrapper) PutCredentials(w http.ResponseWriter, r *http.Request)
PutCredentials operation middleware
func (*ServerInterfaceWrapper) PutReceiverChargingProfile ¶
func (siw *ServerInterfaceWrapper) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request)
PutReceiverChargingProfile operation middleware
func (*ServerInterfaceWrapper) PutSenderChargingProfile ¶
func (siw *ServerInterfaceWrapper) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request)
PutSenderChargingProfile operation middleware
type Session ¶
type Session struct { AuthMethod SessionAuthMethod `json:"auth_method"` AuthorizationReference *string `json:"authorization_reference,omitempty"` CdrToken CdrToken `json:"cdr_token"` ChargingPeriods *[]ChargingPeriod `json:"charging_periods,omitempty"` ConnectorId string `json:"connector_id"` CountryCode string `json:"country_code"` Currency string `json:"currency"` EndDateTime *string `json:"end_date_time,omitempty"` EvseUid string `json:"evse_uid"` Id string `json:"id"` Kwh float32 `json:"kwh"` LastUpdated string `json:"last_updated"` LocationId string `json:"location_id"` MeterId *string `json:"meter_id,omitempty"` PartyId string `json:"party_id"` StartDateTime string `json:"start_date_time"` Status SessionStatus `json:"status"` TotalCost *Price `json:"total_cost,omitempty"` }
Session defines model for Session.
type SessionAuthMethod ¶
type SessionAuthMethod string
SessionAuthMethod defines model for Session.AuthMethod.
const ( SessionAuthMethodAUTHREQUEST SessionAuthMethod = "AUTH_REQUEST" SessionAuthMethodCOMMAND SessionAuthMethod = "COMMAND" SessionAuthMethodWHITELIST SessionAuthMethod = "WHITELIST" )
Defines values for SessionAuthMethod.
type SessionStatus ¶
type SessionStatus string
SessionStatus defines model for Session.Status.
const ( SessionStatusACTIVE SessionStatus = "ACTIVE" SessionStatusCOMPLETED SessionStatus = "COMPLETED" SessionStatusINVALID SessionStatus = "INVALID" SessionStatusPENDING SessionStatus = "PENDING" SessionStatusRESERVATION SessionStatus = "RESERVATION" )
Defines values for SessionStatus.
type SetChargingProfile ¶
type SetChargingProfile struct { ChargingProfile ChargingProfile `json:"charging_profile"` ResponseUrl string `json:"response_url"` }
SetChargingProfile defines model for SetChargingProfile.
type SignedData ¶
type SignedData struct { EncodingMethod string `json:"encoding_method"` EncodingMethodVersion *int32 `json:"encoding_method_version,omitempty"` PublicKey *string `json:"public_key,omitempty"` SignedValues []SignedValue `json:"signed_values"` Url string `json:"url"` }
SignedData defines model for SignedData.
type SignedValue ¶
type SignedValue struct { Nature string `json:"nature"` PlainData string `json:"plain_data"` SignedData string `json:"signed_data"` }
SignedValue defines model for SignedValue.
type StartSession ¶
type StartSession struct { AuthorizationReference *string `json:"authorization_reference,omitempty"` ConnectorId *string `json:"connector_id,omitempty"` EvseUid *string `json:"evse_uid,omitempty"` LocationId string `json:"location_id"` ResponseUrl string `json:"response_url"` Token Token `json:"token"` }
StartSession defines model for StartSession.
type StatusSchedule ¶
type StatusSchedule struct { PeriodBegin string `json:"period_begin"` PeriodEnd *string `json:"period_end,omitempty"` Status StatusScheduleStatus `json:"status"` }
StatusSchedule defines model for StatusSchedule.
type StatusScheduleStatus ¶
type StatusScheduleStatus string
StatusScheduleStatus defines model for StatusSchedule.Status.
const ( AVAILABLE StatusScheduleStatus = "AVAILABLE" BLOCKED StatusScheduleStatus = "BLOCKED" CHARGING StatusScheduleStatus = "CHARGING" INOPERATIVE StatusScheduleStatus = "INOPERATIVE" OUTOFORDER StatusScheduleStatus = "OUTOFORDER" PLANNED StatusScheduleStatus = "PLANNED" REMOVED StatusScheduleStatus = "REMOVED" RESERVED StatusScheduleStatus = "RESERVED" UNKNOWN StatusScheduleStatus = "UNKNOWN" )
Defines values for StatusScheduleStatus.
type StopSession ¶
type StopSession struct { ResponseUrl string `json:"response_url"` SessionId string `json:"session_id"` }
StopSession defines model for StopSession.
type Tariff ¶
type Tariff struct { CountryCode string `json:"country_code"` Currency string `json:"currency"` Elements []TariffElement `json:"elements"` EndDateTime *string `json:"end_date_time,omitempty"` EnergyMix *EnergyMix `json:"energy_mix,omitempty"` Id string `json:"id"` LastUpdated string `json:"last_updated"` MaxPrice *Price `json:"max_price,omitempty"` MinPrice *Price `json:"min_price,omitempty"` PartyId string `json:"party_id"` StartDateTime *string `json:"start_date_time,omitempty"` TariffAltText *[]DisplayText `json:"tariff_alt_text,omitempty"` TariffAltUrl *string `json:"tariff_alt_url,omitempty"` Type *TariffType `json:"type,omitempty"` }
Tariff defines model for Tariff.
type TariffElement ¶
type TariffElement struct { PriceComponents []PriceComponent `json:"price_components"` Restrictions *TariffRestrictions `json:"restrictions,omitempty"` }
TariffElement defines model for TariffElement.
type TariffRestrictions ¶
type TariffRestrictions struct { DayOfWeek *[]TariffRestrictionsDayOfWeek `json:"day_of_week,omitempty"` EndDate *string `json:"end_date,omitempty"` EndTime *string `json:"end_time,omitempty"` MaxCurrent *float32 `json:"max_current,omitempty"` MaxDuration *int32 `json:"max_duration,omitempty"` MaxKwh *float32 `json:"max_kwh,omitempty"` MaxPower *float32 `json:"max_power,omitempty"` MinCurrent *float32 `json:"min_current,omitempty"` MinDuration *int32 `json:"min_duration,omitempty"` MinKwh *float32 `json:"min_kwh,omitempty"` MinPower *float32 `json:"min_power,omitempty"` Reservation *TariffRestrictionsReservation `json:"reservation,omitempty"` StartDate *string `json:"start_date,omitempty"` StartTime *string `json:"start_time,omitempty"` }
TariffRestrictions defines model for TariffRestrictions.
type TariffRestrictionsDayOfWeek ¶
type TariffRestrictionsDayOfWeek string
TariffRestrictionsDayOfWeek defines model for TariffRestrictions.DayOfWeek.
const ( FRIDAY TariffRestrictionsDayOfWeek = "FRIDAY" MONDAY TariffRestrictionsDayOfWeek = "MONDAY" SATURDAY TariffRestrictionsDayOfWeek = "SATURDAY" SUNDAY TariffRestrictionsDayOfWeek = "SUNDAY" THURSDAY TariffRestrictionsDayOfWeek = "THURSDAY" TUESDAY TariffRestrictionsDayOfWeek = "TUESDAY" WEDNESDAY TariffRestrictionsDayOfWeek = "WEDNESDAY" )
Defines values for TariffRestrictionsDayOfWeek.
type TariffRestrictionsReservation ¶
type TariffRestrictionsReservation string
TariffRestrictionsReservation defines model for TariffRestrictions.Reservation.
const ( TariffRestrictionsReservationRESERVATION TariffRestrictionsReservation = "RESERVATION" TariffRestrictionsReservationRESERVATIONEXPIRES TariffRestrictionsReservation = "RESERVATION_EXPIRES" )
Defines values for TariffRestrictionsReservation.
type TariffType ¶
type TariffType string
TariffType defines model for Tariff.Type.
const ( TariffTypeADHOCPAYMENT TariffType = "AD_HOC_PAYMENT" TariffTypePROFILECHEAP TariffType = "PROFILE_CHEAP" TariffTypePROFILEFAST TariffType = "PROFILE_FAST" TariffTypePROFILEGREEN TariffType = "PROFILE_GREEN" TariffTypeREGULAR TariffType = "REGULAR" )
Defines values for TariffType.
type Token ¶
type Token struct { ContractId string `json:"contract_id"` CountryCode string `json:"country_code"` DefaultProfileType *TokenDefaultProfileType `json:"default_profile_type,omitempty"` EnergyContract *EnergyContract `json:"energy_contract,omitempty"` GroupId *string `json:"group_id,omitempty"` Issuer string `json:"issuer"` Language *string `json:"language,omitempty"` LastUpdated string `json:"last_updated"` PartyId string `json:"party_id"` Type TokenType `json:"type"` Uid string `json:"uid"` Valid bool `json:"valid"` VisualNumber *string `json:"visual_number,omitempty"` Whitelist TokenWhitelist `json:"whitelist"` }
Token defines model for Token.
type TokenDefaultProfileType ¶
type TokenDefaultProfileType string
TokenDefaultProfileType defines model for Token.DefaultProfileType.
const ( CHEAP TokenDefaultProfileType = "CHEAP" FAST TokenDefaultProfileType = "FAST" GREEN TokenDefaultProfileType = "GREEN" REGULAR TokenDefaultProfileType = "REGULAR" )
Defines values for TokenDefaultProfileType.
type TokenWhitelist ¶
type TokenWhitelist string
TokenWhitelist defines model for Token.Whitelist.
const ( ALLOWED TokenWhitelist = "ALLOWED" ALLOWEDOFFLINE TokenWhitelist = "ALLOWED_OFFLINE" ALWAYS TokenWhitelist = "ALWAYS" NEVER TokenWhitelist = "NEVER" )
Defines values for TokenWhitelist.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) DeleteClientOwnedTariff ¶
func (_ Unimplemented) DeleteClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params DeleteClientOwnedTariffParams)
(DELETE /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID})
func (Unimplemented) DeleteCredentials ¶
func (_ Unimplemented) DeleteCredentials(w http.ResponseWriter, r *http.Request, params DeleteCredentialsParams)
(DELETE /ocpi/2.2/credentials)
func (Unimplemented) DeleteReceiverChargingProfile ¶
func (_ Unimplemented) DeleteReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params DeleteReceiverChargingProfileParams)
(DELETE /ocpi/2.2/receiver/chargingprofiles/{sessionId})
func (Unimplemented) GetCdrPageFromDataOwner ¶
func (_ Unimplemented) GetCdrPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetCdrPageFromDataOwnerParams)
(GET /ocpi/sender/2.2/cdrs/page/{uid})
func (Unimplemented) GetCdrsFromDataOwner ¶
func (_ Unimplemented) GetCdrsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetCdrsFromDataOwnerParams)
(GET /ocpi/sender/2.2/cdrs)
func (Unimplemented) GetClientOwnedCdr ¶
func (_ Unimplemented) GetClientOwnedCdr(w http.ResponseWriter, r *http.Request, cdrID string, params GetClientOwnedCdrParams)
(GET /ocpi/receiver/2.2/cdrs/{cdrID})
func (Unimplemented) GetClientOwnedConnector ¶
func (_ Unimplemented) GetClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params GetClientOwnedConnectorParams)
(GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID})
func (Unimplemented) GetClientOwnedEvse ¶
func (_ Unimplemented) GetClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params GetClientOwnedEvseParams)
(GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID})
func (Unimplemented) GetClientOwnedLocation ¶
func (_ Unimplemented) GetClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params GetClientOwnedLocationParams)
(GET /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID})
func (Unimplemented) GetClientOwnedSession ¶
func (_ Unimplemented) GetClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params GetClientOwnedSessionParams)
(GET /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID})
func (Unimplemented) GetClientOwnedTariff ¶
func (_ Unimplemented) GetClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params GetClientOwnedTariffParams)
(GET /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID})
func (Unimplemented) GetClientOwnedToken ¶
func (_ Unimplemented) GetClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params GetClientOwnedTokenParams)
(GET /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID})
func (Unimplemented) GetConnectorObjectFromDataOwner ¶
func (_ Unimplemented) GetConnectorObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, connectorID string, params GetConnectorObjectFromDataOwnerParams)
(GET /ocpi/sender/2.2/locations/{locationID}/{evseUID}/{connectorID})
func (Unimplemented) GetCredentials ¶
func (_ Unimplemented) GetCredentials(w http.ResponseWriter, r *http.Request, params GetCredentialsParams)
(GET /ocpi/2.2/credentials)
func (Unimplemented) GetEvseObjectFromDataOwner ¶
func (_ Unimplemented) GetEvseObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, evseUID string, params GetEvseObjectFromDataOwnerParams)
(GET /ocpi/sender/2.2/locations/{locationID}/{evseUID})
func (Unimplemented) GetLocationListFromDataOwner ¶
func (_ Unimplemented) GetLocationListFromDataOwner(w http.ResponseWriter, r *http.Request, params GetLocationListFromDataOwnerParams)
(GET /ocpi/sender/2.2/locations)
func (Unimplemented) GetLocationObjectFromDataOwner ¶
func (_ Unimplemented) GetLocationObjectFromDataOwner(w http.ResponseWriter, r *http.Request, locationID string, params GetLocationObjectFromDataOwnerParams)
(GET /ocpi/sender/2.2/locations/{locationID})
func (Unimplemented) GetLocationPageFromDataOwner ¶
func (_ Unimplemented) GetLocationPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetLocationPageFromDataOwnerParams)
(GET /ocpi/sender/2.2/locations/page/{uid})
func (Unimplemented) GetReceiverChargingProfile ¶
func (_ Unimplemented) GetReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params GetReceiverChargingProfileParams)
(GET /ocpi/2.2/receiver/chargingprofiles/{sessionId})
func (Unimplemented) GetSessionsFromDataOwner ¶
func (_ Unimplemented) GetSessionsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetSessionsFromDataOwnerParams)
(GET /ocpi/sender/2.2/sessions)
func (Unimplemented) GetSessionsPageFromDataOwner ¶
func (_ Unimplemented) GetSessionsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetSessionsPageFromDataOwnerParams)
(GET /ocpi/sender/2.2/sessions/page/{uid})
func (Unimplemented) GetTariffsFromDataOwner ¶
func (_ Unimplemented) GetTariffsFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTariffsFromDataOwnerParams)
(GET /ocpi/sender/2.2/tariffs)
func (Unimplemented) GetTariffsPageFromDataOwner ¶
func (_ Unimplemented) GetTariffsPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTariffsPageFromDataOwnerParams)
(GET /ocpi/sender/2.2/tariffs/page/{uid})
func (Unimplemented) GetTokensFromDataOwner ¶
func (_ Unimplemented) GetTokensFromDataOwner(w http.ResponseWriter, r *http.Request, params GetTokensFromDataOwnerParams)
(GET /ocpi/sender/2.2/tokens)
func (Unimplemented) GetTokensPageFromDataOwner ¶
func (_ Unimplemented) GetTokensPageFromDataOwner(w http.ResponseWriter, r *http.Request, uid string, params GetTokensPageFromDataOwnerParams)
(GET /ocpi/sender/2.2/tokens/page/{uid})
func (Unimplemented) GetVersion ¶
func (_ Unimplemented) GetVersion(w http.ResponseWriter, r *http.Request, params GetVersionParams)
(GET /ocpi/2.2)
func (Unimplemented) GetVersions ¶
func (_ Unimplemented) GetVersions(w http.ResponseWriter, r *http.Request, params GetVersionsParams)
(GET /ocpi/versions)
func (Unimplemented) PatchClientOwnedConnector ¶
func (_ Unimplemented) PatchClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params PatchClientOwnedConnectorParams)
(PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID})
func (Unimplemented) PatchClientOwnedEvse ¶
func (_ Unimplemented) PatchClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PatchClientOwnedEvseParams)
(PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID})
func (Unimplemented) PatchClientOwnedLocation ¶
func (_ Unimplemented) PatchClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PatchClientOwnedLocationParams)
(PATCH /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID})
func (Unimplemented) PatchClientOwnedSession ¶
func (_ Unimplemented) PatchClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PatchClientOwnedSessionParams)
(PATCH /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID})
func (Unimplemented) PatchClientOwnedToken ¶
func (_ Unimplemented) PatchClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PatchClientOwnedTokenParams)
(PATCH /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID})
func (Unimplemented) PostAsyncResponse ¶
func (_ Unimplemented) PostAsyncResponse(w http.ResponseWriter, r *http.Request, command PostAsyncResponseParamsCommand, uid string, params PostAsyncResponseParams)
(POST /ocpi/sender/2.2/commands/{command}/{uid})
func (Unimplemented) PostCancelReservation ¶
func (_ Unimplemented) PostCancelReservation(w http.ResponseWriter, r *http.Request, params PostCancelReservationParams)
(POST /ocpi/receiver/2.2/commands/CANCEL_RESERVATION)
func (Unimplemented) PostClientOwnedCdr ¶
func (_ Unimplemented) PostClientOwnedCdr(w http.ResponseWriter, r *http.Request, params PostClientOwnedCdrParams)
(POST /ocpi/receiver/2.2/cdrs)
func (Unimplemented) PostCredentials ¶
func (_ Unimplemented) PostCredentials(w http.ResponseWriter, r *http.Request, params PostCredentialsParams)
(POST /ocpi/2.2/credentials)
func (Unimplemented) PostGenericChargingProfileResult ¶
func (_ Unimplemented) PostGenericChargingProfileResult(w http.ResponseWriter, r *http.Request, uid string, params PostGenericChargingProfileResultParams)
(POST /ocpi/2.2/sender/chargingprofiles/result/{uid})
func (Unimplemented) PostRealTimeTokenAuthorization ¶
func (_ Unimplemented) PostRealTimeTokenAuthorization(w http.ResponseWriter, r *http.Request, tokenUID string, params PostRealTimeTokenAuthorizationParams)
(POST /ocpi/sender/2.2/tokens/{tokenUID}/authorize)
func (Unimplemented) PostReserveNow ¶
func (_ Unimplemented) PostReserveNow(w http.ResponseWriter, r *http.Request, params PostReserveNowParams)
(POST /ocpi/receiver/2.2/commands/RESERVE_NOW)
func (Unimplemented) PostStartSession ¶
func (_ Unimplemented) PostStartSession(w http.ResponseWriter, r *http.Request, params PostStartSessionParams)
(POST /ocpi/receiver/2.2/commands/START_SESSION)
func (Unimplemented) PostStopSession ¶
func (_ Unimplemented) PostStopSession(w http.ResponseWriter, r *http.Request, params PostStopSessionParams)
(POST /ocpi/receiver/2.2/commands/STOP_SESSION)
func (Unimplemented) PostUnlockConnector ¶
func (_ Unimplemented) PostUnlockConnector(w http.ResponseWriter, r *http.Request, params PostUnlockConnectorParams)
(POST /ocpi/receiver/2.2/commands/UNLOCK_CONNECTOR)
func (Unimplemented) PutChargingPreferences ¶
func (_ Unimplemented) PutChargingPreferences(w http.ResponseWriter, r *http.Request, sessionID string, params PutChargingPreferencesParams)
(PUT /ocpi/sender/2.2/sessions/{sessionID}/charging_preferences)
func (Unimplemented) PutClientOwnedConnector ¶
func (_ Unimplemented) PutClientOwnedConnector(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, connectorID string, params PutClientOwnedConnectorParams)
(PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID})
func (Unimplemented) PutClientOwnedEvse ¶
func (_ Unimplemented) PutClientOwnedEvse(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, evseUID string, params PutClientOwnedEvseParams)
(PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID})
func (Unimplemented) PutClientOwnedLocation ¶
func (_ Unimplemented) PutClientOwnedLocation(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, locationID string, params PutClientOwnedLocationParams)
(PUT /ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID})
func (Unimplemented) PutClientOwnedSession ¶
func (_ Unimplemented) PutClientOwnedSession(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, sessionID string, params PutClientOwnedSessionParams)
(PUT /ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID})
func (Unimplemented) PutClientOwnedTariff ¶
func (_ Unimplemented) PutClientOwnedTariff(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tariffID string, params PutClientOwnedTariffParams)
(PUT /ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID})
func (Unimplemented) PutClientOwnedToken ¶
func (_ Unimplemented) PutClientOwnedToken(w http.ResponseWriter, r *http.Request, countryCode string, partyID string, tokenUID string, params PutClientOwnedTokenParams)
(PUT /ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID})
func (Unimplemented) PutCredentials ¶
func (_ Unimplemented) PutCredentials(w http.ResponseWriter, r *http.Request, params PutCredentialsParams)
(PUT /ocpi/2.2/credentials)
func (Unimplemented) PutReceiverChargingProfile ¶
func (_ Unimplemented) PutReceiverChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutReceiverChargingProfileParams)
(PUT /ocpi/2.2/receiver/chargingprofiles/{sessionId})
func (Unimplemented) PutSenderChargingProfile ¶
func (_ Unimplemented) PutSenderChargingProfile(w http.ResponseWriter, r *http.Request, sessionId string, params PutSenderChargingProfileParams)
(PUT /ocpi/2.2/sender/chargingprofiles/{sessionId})
type UnlockConnector ¶
type UnlockConnector struct { ConnectorId string `json:"connector_id"` EvseUid string `json:"evse_uid"` LocationId string `json:"location_id"` ResponseUrl string `json:"response_url"` }
UnlockConnector defines model for UnlockConnector.
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type VersionDetail ¶
type VersionDetail struct { Endpoints []Endpoint `json:"endpoints"` Version string `json:"version"` }
VersionDetail defines model for VersionDetail.