firestore

package
v0.0.0-...-4086bda Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package firestore provides an implementation of store.Engine using Google Firestore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(ctx context.Context, gcloudProject string, clock clock.PassiveClock) (store.Engine, error)

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) CreateTransaction

func (s *Store) CreateTransaction(ctx context.Context, chargeStationId, transactionId, idToken, tokenType string, meterValue []store.MeterValue, seqNo int, offline bool) error

func (*Store) DeleteCertificate

func (s *Store) DeleteCertificate(ctx context.Context, certificateHash string) error

func (*Store) DeleteChargeStationSettings

func (s *Store) DeleteChargeStationSettings(ctx context.Context, chargeStationId string) error

func (*Store) DeleteChargeStationTriggerMessage

func (s *Store) DeleteChargeStationTriggerMessage(ctx context.Context, chargeStationId string) error

func (*Store) DeleteRegistrationDetails

func (s *Store) DeleteRegistrationDetails(ctx context.Context, token string) error

func (*Store) EndTransaction

func (s *Store) EndTransaction(ctx context.Context, chargeStationId, transactionId, idToken, tokenType string, meterValue []store.MeterValue, seqNo int) error

func (*Store) FindTransaction

func (s *Store) FindTransaction(ctx context.Context, chargeStationId, transactionId string) (*store.Transaction, error)

func (*Store) GetPartyDetails

func (s *Store) GetPartyDetails(ctx context.Context, role, countryCode, partyId string) (*store.OcpiParty, error)

func (*Store) GetRegistrationDetails

func (s *Store) GetRegistrationDetails(ctx context.Context, token string) (*store.OcpiRegistration, error)

func (*Store) ListChargeStationInstallCertificates

func (s *Store) ListChargeStationInstallCertificates(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationInstallCertificates, error)

func (*Store) ListChargeStationSettings

func (s *Store) ListChargeStationSettings(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationSettings, error)

func (*Store) ListChargeStationTriggerMessages

func (s *Store) ListChargeStationTriggerMessages(ctx context.Context, pageSize int, previousCsId string) ([]*store.ChargeStationTriggerMessage, error)

func (*Store) ListLocations

func (s *Store) ListLocations(context context.Context, offset int, limit int) ([]*store.Location, error)

func (*Store) ListPartyDetailsForRole

func (s *Store) ListPartyDetailsForRole(context context.Context, role string) ([]*store.OcpiParty, error)

func (*Store) ListTokens

func (s *Store) ListTokens(context context.Context, offset int, limit int) ([]*store.Token, error)

func (*Store) LookupCertificate

func (s *Store) LookupCertificate(ctx context.Context, certificateHash string) (string, error)

func (*Store) LookupChargeStationAuth

func (s *Store) LookupChargeStationAuth(ctx context.Context, chargeStationId string) (*store.ChargeStationAuth, error)

func (*Store) LookupChargeStationInstallCertificates

func (s *Store) LookupChargeStationInstallCertificates(ctx context.Context, chargeStationId string) (*store.ChargeStationInstallCertificates, error)

func (*Store) LookupChargeStationRuntimeDetails

func (s *Store) LookupChargeStationRuntimeDetails(ctx context.Context, chargeStationId string) (*store.ChargeStationRuntimeDetails, error)

func (*Store) LookupChargeStationSettings

func (s *Store) LookupChargeStationSettings(ctx context.Context, chargeStationId string) (*store.ChargeStationSettings, error)

func (*Store) LookupChargeStationTriggerMessage

func (s *Store) LookupChargeStationTriggerMessage(ctx context.Context, chargeStationId string) (*store.ChargeStationTriggerMessage, error)

func (*Store) LookupLocation

func (s *Store) LookupLocation(ctx context.Context, locationId string) (*store.Location, error)

func (*Store) LookupToken

func (s *Store) LookupToken(ctx context.Context, tokenUid string) (*store.Token, error)

func (*Store) SetCertificate

func (s *Store) SetCertificate(ctx context.Context, pemCertificate string) error

func (*Store) SetChargeStationAuth

func (s *Store) SetChargeStationAuth(ctx context.Context, chargeStationId string, auth *store.ChargeStationAuth) error

func (*Store) SetChargeStationRuntimeDetails

func (s *Store) SetChargeStationRuntimeDetails(ctx context.Context, chargeStationId string, details *store.ChargeStationRuntimeDetails) error

func (*Store) SetChargeStationTriggerMessage

func (s *Store) SetChargeStationTriggerMessage(ctx context.Context, chargeStationId string, triggerMessage *store.ChargeStationTriggerMessage) error

func (*Store) SetLocation

func (s *Store) SetLocation(ctx context.Context, loc *store.Location) error

func (*Store) SetPartyDetails

func (s *Store) SetPartyDetails(ctx context.Context, partyDetails *store.OcpiParty) error

func (*Store) SetRegistrationDetails

func (s *Store) SetRegistrationDetails(ctx context.Context, token string, registration *store.OcpiRegistration) error

func (*Store) SetToken

func (s *Store) SetToken(ctx context.Context, tok *store.Token) error

func (*Store) Transactions

func (s *Store) Transactions(ctx context.Context) ([]*store.Transaction, error)

func (*Store) UpdateChargeStationInstallCertificates

func (s *Store) UpdateChargeStationInstallCertificates(ctx context.Context, chargeStationId string, certificates *store.ChargeStationInstallCertificates) error

func (*Store) UpdateChargeStationSettings

func (s *Store) UpdateChargeStationSettings(ctx context.Context, chargeStationId string, settings *store.ChargeStationSettings) error

func (*Store) UpdateTransaction

func (s *Store) UpdateTransaction(ctx context.Context, chargeStationId, transactionId string, meterValue []store.MeterValue) error

Jump to

Keyboard shortcuts

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