store

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommonNameKey     = "commonName"     // must match with pb.SigningRecord.CommonName tag
	OwnerKey          = "owner"          // must match with pb.SigningRecord.Owner tag
	DateKey           = "date"           // must match with pb.SigningRecord.Date tag
	CredentialKey     = "credential"     // must match with pb.SigningRecord.Credential tag
	CreationDateKey   = "creationDate"   // must match with pb.SigningRecord.CreationDate tag
	PublicKeyKey      = "publicKey"      // must match with pb.SigningRecord.PublicKey tag
	ValidUntilDateKey = "validUntilDate" // must match with pb.SigningRecord.Credential.ValidUntilDate tag
	DeviceIDKey       = "deviceId"       // must match with pb.SigningRecord.Credential.DeviceID tag
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteSigningRecordsQuery

type DeleteSigningRecordsQuery = pb.DeleteSigningRecordsRequest

type LoadSigningRecordsFunc

type LoadSigningRecordsFunc = func(ctx context.Context, iter SigningRecordIter) (err error)

type SigningRecord

type SigningRecord = pb.SigningRecord

type SigningRecordIter

type SigningRecordIter interface {
	Next(ctx context.Context, SigningRecord *SigningRecord) bool
	Err() error
}

type SigningRecordsQuery

type SigningRecordsQuery = pb.GetSigningRecordsRequest

type Store

type Store interface {
	UpdateSigningRecord(ctx context.Context, sub *SigningRecord) error
	DeleteSigningRecords(ctx context.Context, ownerID string, query *DeleteSigningRecordsQuery) error
	LoadSigningRecords(ctx context.Context, ownerID string, query *SigningRecordsQuery, h LoadSigningRecordsFunc) error

	Close(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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