storage

package
v0.0.0-...-9497c45 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeStageOneDummyData

func MakeStageOneDummyData(dao *FireStoreDAO) error

func MakeStageThreeDummyData

func MakeStageThreeDummyData(dao *FireStoreDAO) error

func MakeStageTwoDummyData

func MakeStageTwoDummyData(dao *FireStoreDAO) error

Types

type FireStoreDAO

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

func NewFireStoreDAO

func NewFireStoreDAO(client *firestore.Client) *FireStoreDAO

func (*FireStoreDAO) AddNewCertificate

func (f *FireStoreDAO) AddNewCertificate(ctx context.Context,
	cert *models.FirebaseCertificate) error

func (*FireStoreDAO) Deinit

func (f *FireStoreDAO) Deinit() error

func (*FireStoreDAO) DeleteAllCertificates

func (f *FireStoreDAO) DeleteAllCertificates(ctx context.Context) error

type GlobalChainInfoDAO

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

func NewGlobalChainInfoDAO

func NewGlobalChainInfoDAO(db *gorm.DB) *GlobalChainInfoDAO

func (*GlobalChainInfoDAO) GetAllGlobalChainInfo

func (g *GlobalChainInfoDAO) GetAllGlobalChainInfo(ctx context.Context) ([]*models.GlobalChainInfo, error)

type LocalCertDAO

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

func NewLocalCertDAO

func NewLocalCertDAO(db *gorm.DB) *LocalCertDAO

func (*LocalCertDAO) GetAllLocalCertificates

func (l *LocalCertDAO) GetAllLocalCertificates(ctx context.Context) ([]*models.LocalCertificate, error)

Jump to

Keyboard shortcuts

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