clouddatastore

package
v0.0.0-...-1196ed7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(ctx context.Context) (*Store, error)

func (*Store) DeleteAllMappingAuthTokens

func (s *Store) DeleteAllMappingAuthTokens(ctx context.Context, owner string) error

func (*Store) GetAllAssumedCoverageLocationsAtWithRes

func (s *Store) GetAllAssumedCoverageLocationsAtWithRes(ctx context.Context, at time.Time, res int) ([]h3light.Cell, error)

GetAllAssumedCoverageLocationsAtWithRes implements store.Store

func (*Store) GetAllAssumedUnverifiedCoverageLocationsWithRes

func (s *Store) GetAllAssumedUnverifiedCoverageLocationsWithRes(ctx context.Context, res int) ([]h3light.Cell, error)

func (*Store) GetAssumedCoverageLocationsForGateway

func (s *Store) GetAssumedCoverageLocationsForGateway(ctx context.Context, gatewayID types.ID, at time.Time) ([]h3light.Cell, error)

GetAssumedCoverageLocationsForGateway implements store.Store

func (*Store) GetAssumedCoverageLocationsInRegionAtWithRes

func (s *Store) GetAssumedCoverageLocationsInRegionAtWithRes(ctx context.Context, region h3light.Cell, at time.Time, res int) ([]h3light.Cell, error)

GetAssumedCoverageLocationsInRegionAtWithRes implements store.Store

func (*Store) GetAssumedUnverifiedCoverageByLocation

func (s *Store) GetAssumedUnverifiedCoverageByLocation(ctx context.Context, location h3light.Cell) (*types.AssumedUnverifiedCoverage, error)

func (*Store) GetAssumedUnverifiedCoverageLocationsInRegionWithRes

func (s *Store) GetAssumedUnverifiedCoverageLocationsInRegionWithRes(ctx context.Context, region h3light.Cell, res int) ([]h3light.Cell, error)

func (*Store) GetCoverageForGatewayAt

func (s *Store) GetCoverageForGatewayAt(ctx context.Context, gatewayID types.ID, at time.Time) ([]*types.CoverageHistory, error)

GetCoverageForGatewayAt implements store.Store

func (*Store) GetCoverageInRegionAt

func (s *Store) GetCoverageInRegionAt(ctx context.Context, region h3light.Cell, at time.Time) ([]*types.CoverageHistory, error)

GetCoverageInRegionAt implements store.Store

func (*Store) GetMapping

func (s *Store) GetMapping(ctx context.Context, id types.ID) (*types.MappingRecord, error)

func (*Store) GetMappingAuthTokenByChallenge

func (s *Store) GetMappingAuthTokenByChallenge(ctx context.Context, challenge string) (*models.DBMappingAuthToken, error)

func (*Store) GetMappingAuthTokenByCode

func (s *Store) GetMappingAuthTokenByCode(ctx context.Context, code string) (*models.DBMappingAuthToken, error)

func (*Store) GetMappingsForMapperInPeriod

func (s *Store) GetMappingsForMapperInPeriod(ctx context.Context, mapperID types.ID, start time.Time, end time.Time, limit int, cursor string) ([]*types.MappingRecord, string, error)

func (*Store) GetMinMaxCoverageDates

func (s *Store) GetMinMaxCoverageDates(ctx context.Context) (time.Time, time.Time, error)

GetMinMaxCoverageDates implements store.Store

func (*Store) GetRecentMappingsInRegion

func (s *Store) GetRecentMappingsInRegion(ctx context.Context, region h3light.Cell, since time.Duration) ([]*types.MappingRecord, error)

func (*Store) GetUnverifiedMappingRecord

func (s *Store) GetUnverifiedMappingRecord(ctx context.Context, id types.ID) (*types.UnverifiedMappingRecord, error)

func (*Store) GetUnverifiedMappingRecordsInRegion

func (s *Store) GetUnverifiedMappingRecordsInRegion(ctx context.Context, region h3light.Cell) ([]*types.UnverifiedMappingRecord, error)

func (*Store) GetValidMappingsInRegionBetween

func (s *Store) GetValidMappingsInRegionBetween(ctx context.Context, region h3light.Cell, start time.Time, end time.Time) ([]*types.MappingRecord, error)

GetRecentValidMappingsInRegion implements store.Store

func (*Store) StoreAssumedCoverage

func (s *Store) StoreAssumedCoverage(ctx context.Context, assumedCoverageHistories []*types.AssumedCoverageHistory) error

StoreAssumedCoverage implements store.Store

func (*Store) StoreAssumedUnverifiedCoverage

func (s *Store) StoreAssumedUnverifiedCoverage(ctx context.Context, assumedCoverage *types.AssumedUnverifiedCoverage) error

func (*Store) StoreCoverage

func (s *Store) StoreCoverage(ctx context.Context, coverageHistories []*types.CoverageHistory) error

StoreCoverage implements store.Store

func (*Store) StoreMapping

func (s *Store) StoreMapping(ctx context.Context, mappingRecord *types.MappingRecord) error

func (*Store) StoreMappingAuthToken

func (s *Store) StoreMappingAuthToken(ctx context.Context, mappingAuthToken *models.DBMappingAuthToken) error

func (*Store) StoreUnverifiedMappingRecord

func (s *Store) StoreUnverifiedMappingRecord(ctx context.Context, mappingRecord *types.UnverifiedMappingRecord) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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