Documentation ¶
Overview ¶
Package inmemory provides an in-memory implementation of store.Engine.
Index ¶
- type Store
- func (s *Store) CreateTransaction(_ context.Context, chargeStationId, transactionId, idToken, tokenType string, ...) error
- func (s *Store) DeleteCertificate(_ context.Context, certificateHash string) error
- func (s *Store) DeleteChargeStationSettings(_ context.Context, chargeStationId string) error
- func (s *Store) DeleteChargeStationTriggerMessage(ctx context.Context, chargeStationId string) error
- func (s *Store) DeleteRegistrationDetails(_ context.Context, token string) error
- func (s *Store) EndTransaction(_ context.Context, chargeStationId, transactionId, idToken, tokenType string, ...) error
- func (s *Store) FindTransaction(_ context.Context, chargeStationId, transactionId string) (*store.Transaction, error)
- func (s *Store) GetPartyDetails(_ context.Context, role, countryCode, partyId string) (*store.OcpiParty, error)
- func (s *Store) GetRegistrationDetails(_ context.Context, token string) (*store.OcpiRegistration, error)
- func (s *Store) ListChargeStationInstallCertificates(_ context.Context, pageSize int, previousChargeStationId string) ([]*store.ChargeStationInstallCertificates, error)
- func (s *Store) ListChargeStationSettings(_ context.Context, pageSize int, previousChargeStationId string) ([]*store.ChargeStationSettings, error)
- func (s *Store) ListChargeStationTriggerMessages(ctx context.Context, pageSize int, previousChargeStationId string) ([]*store.ChargeStationTriggerMessage, error)
- func (s *Store) ListLocations(_ context.Context, offset int, limit int) ([]*store.Location, error)
- func (s *Store) ListPartyDetailsForRole(_ context.Context, role string) ([]*store.OcpiParty, error)
- func (s *Store) ListTokens(_ context.Context, offset int, limit int) ([]*store.Token, error)
- func (s *Store) LookupCertificate(_ context.Context, certificateHash string) (string, error)
- func (s *Store) LookupChargeStationAuth(_ context.Context, chargeStationId string) (*store.ChargeStationAuth, error)
- func (s *Store) LookupChargeStationInstallCertificates(_ context.Context, chargeStationId string) (*store.ChargeStationInstallCertificates, error)
- func (s *Store) LookupChargeStationRuntimeDetails(_ context.Context, chargeStationId string) (*store.ChargeStationRuntimeDetails, error)
- func (s *Store) LookupChargeStationSettings(_ context.Context, chargeStationId string) (*store.ChargeStationSettings, error)
- func (s *Store) LookupChargeStationTriggerMessage(ctx context.Context, chargeStationId string) (*store.ChargeStationTriggerMessage, error)
- func (s *Store) LookupLocation(_ context.Context, locationId string) (*store.Location, error)
- func (s *Store) LookupToken(_ context.Context, tokenUid string) (*store.Token, error)
- func (s *Store) SetCertificate(_ context.Context, pemCertificate string) error
- func (s *Store) SetChargeStationAuth(_ context.Context, chargeStationId string, auth *store.ChargeStationAuth) error
- func (s *Store) SetChargeStationRuntimeDetails(_ context.Context, chargeStationId string, ...) error
- func (s *Store) SetChargeStationTriggerMessage(ctx context.Context, chargeStationId string, ...) error
- func (s *Store) SetLocation(_ context.Context, location *store.Location) error
- func (s *Store) SetPartyDetails(_ context.Context, partyDetails *store.OcpiParty) error
- func (s *Store) SetRegistrationDetails(_ context.Context, token string, registration *store.OcpiRegistration) error
- func (s *Store) SetToken(_ context.Context, token *store.Token) error
- func (s *Store) Transactions(_ context.Context) ([]*store.Transaction, error)
- func (s *Store) UpdateChargeStationInstallCertificates(_ context.Context, chargeStationId string, ...) error
- func (s *Store) UpdateChargeStationSettings(_ context.Context, chargeStationId string, ...) error
- func (s *Store) UpdateTransaction(_ context.Context, chargeStationId, transactionId string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an in-memory implementation of the store.Engine interface. As everything is stored in memory it is not stateless and cannot be used if running >1 manager instances. It is primarily provided to support unit testing.
func NewStore ¶
func NewStore(clock clock.PassiveClock) *Store
func (*Store) CreateTransaction ¶
func (*Store) DeleteCertificate ¶
func (*Store) DeleteChargeStationSettings ¶
func (*Store) DeleteChargeStationTriggerMessage ¶
func (*Store) DeleteRegistrationDetails ¶
func (*Store) EndTransaction ¶
func (*Store) FindTransaction ¶
func (*Store) GetPartyDetails ¶
func (*Store) GetRegistrationDetails ¶
func (*Store) ListChargeStationInstallCertificates ¶
func (*Store) ListChargeStationSettings ¶
func (*Store) ListChargeStationTriggerMessages ¶
func (*Store) ListLocations ¶
func (*Store) ListPartyDetailsForRole ¶
func (*Store) ListTokens ¶
func (*Store) LookupCertificate ¶
func (*Store) LookupChargeStationAuth ¶
func (*Store) LookupChargeStationInstallCertificates ¶
func (*Store) LookupChargeStationRuntimeDetails ¶
func (*Store) LookupChargeStationSettings ¶
func (*Store) LookupChargeStationTriggerMessage ¶
func (*Store) LookupLocation ¶
func (*Store) LookupToken ¶
func (*Store) SetCertificate ¶
func (*Store) SetChargeStationAuth ¶
func (*Store) SetChargeStationRuntimeDetails ¶
func (*Store) SetChargeStationTriggerMessage ¶
func (*Store) SetLocation ¶
func (*Store) SetPartyDetails ¶
func (*Store) SetRegistrationDetails ¶
func (*Store) Transactions ¶
func (*Store) UpdateChargeStationInstallCertificates ¶
func (*Store) UpdateChargeStationSettings ¶
func (*Store) UpdateTransaction ¶
Click to show internal directories.
Click to hide internal directories.