Documentation ¶
Overview ¶
Package firestore provides an implementation of store.Engine using Google Firestore.
Index ¶
- func NewStore(ctx context.Context, gcloudProject string, clock clock.PassiveClock) (store.Engine, error)
- type Store
- func (s *Store) CreateTransaction(ctx context.Context, chargeStationId, transactionId, idToken, tokenType string, ...) error
- func (s *Store) DeleteCertificate(ctx context.Context, certificateHash string) error
- func (s *Store) DeleteChargeStationSettings(ctx context.Context, chargeStationId string) error
- func (s *Store) DeleteChargeStationTriggerMessage(ctx context.Context, chargeStationId string) error
- func (s *Store) DeleteRegistrationDetails(ctx context.Context, token string) error
- func (s *Store) EndTransaction(ctx context.Context, chargeStationId, transactionId, idToken, tokenType string, ...) error
- func (s *Store) FindTransaction(ctx context.Context, chargeStationId, transactionId string) (*store.Transaction, error)
- func (s *Store) GetPartyDetails(ctx context.Context, role, countryCode, partyId string) (*store.OcpiParty, error)
- func (s *Store) GetRegistrationDetails(ctx context.Context, token string) (*store.OcpiRegistration, error)
- func (s *Store) ListChargeStationInstallCertificates(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationInstallCertificates, error)
- func (s *Store) ListChargeStationSettings(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationSettings, error)
- func (s *Store) ListChargeStationTriggerMessages(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationTriggerMessage, error)
- func (s *Store) ListLocations(context context.Context, offset int, limit int) ([]*store.Location, error)
- func (s *Store) ListPartyDetailsForRole(context context.Context, role string) ([]*store.OcpiParty, error)
- func (s *Store) ListTokens(context context.Context, offset int, limit int) ([]*store.Token, error)
- func (s *Store) LookupCertificate(ctx context.Context, certificateHash string) (string, error)
- func (s *Store) LookupChargeStationAuth(ctx context.Context, chargeStationId string) (*store.ChargeStationAuth, error)
- func (s *Store) LookupChargeStationInstallCertificates(ctx context.Context, chargeStationId string) (*store.ChargeStationInstallCertificates, error)
- func (s *Store) LookupChargeStationRuntimeDetails(ctx context.Context, chargeStationId string) (*store.ChargeStationRuntimeDetails, error)
- func (s *Store) LookupChargeStationSettings(ctx context.Context, chargeStationId string) (*store.ChargeStationSettings, error)
- func (s *Store) LookupChargeStationTriggerMessage(ctx context.Context, chargeStationId string) (*store.ChargeStationTriggerMessage, error)
- func (s *Store) LookupLocation(ctx context.Context, locationId string) (*store.Location, error)
- func (s *Store) LookupToken(ctx context.Context, tokenUid string) (*store.Token, error)
- func (s *Store) SetCertificate(ctx context.Context, pemCertificate string) error
- func (s *Store) SetChargeStationAuth(ctx context.Context, chargeStationId string, auth *store.ChargeStationAuth) error
- func (s *Store) SetChargeStationRuntimeDetails(ctx context.Context, chargeStationId string, ...) error
- func (s *Store) SetChargeStationTriggerMessage(ctx context.Context, chargeStationId string, ...) error
- func (s *Store) SetLocation(ctx context.Context, loc *store.Location) error
- func (s *Store) SetPartyDetails(ctx context.Context, partyDetails *store.OcpiParty) error
- func (s *Store) SetRegistrationDetails(ctx context.Context, token string, registration *store.OcpiRegistration) error
- func (s *Store) SetToken(ctx context.Context, tok *store.Token) error
- func (s *Store) Transactions(ctx context.Context) ([]*store.Transaction, error)
- func (s *Store) UpdateChargeStationInstallCertificates(ctx context.Context, chargeStationId string, ...) error
- func (s *Store) UpdateChargeStationSettings(ctx context.Context, chargeStationId string, ...) error
- func (s *Store) UpdateTransaction(ctx context.Context, chargeStationId, transactionId string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.