auditdb

package
Version: v0.0.0-...-df2b895 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() []string

Drivers returns a sorted list of the names of the registered drivers.

func Register

func Register(name string, driver driver.Driver)

Register makes a AuditDB driver available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

Types

type AuditDB

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

func GetAuditDB

func GetAuditDB(sp view2.ServiceProvider, w *token.AuditorWallet) *AuditDB

func (*AuditDB) Append

func (db *AuditDB) Append(record *token.AuditRecord) error

func (*AuditDB) NewQueryExecutor

func (db *AuditDB) NewQueryExecutor() *QueryExecutor

func (*AuditDB) SetStatus

func (db *AuditDB) SetStatus(txID string, status Status) error

type HoldingsFilter

type HoldingsFilter struct {
	EnrollmentIds []string
	Types         []string
	// contains filtered or unexported fields
}

func (*HoldingsFilter) ByEnrollmentId

func (f *HoldingsFilter) ByEnrollmentId(id string) *HoldingsFilter

func (*HoldingsFilter) ByType

func (f *HoldingsFilter) ByType(tokenType string) *HoldingsFilter

func (*HoldingsFilter) Execute

func (f *HoldingsFilter) Execute() (*HoldingsFilter, error)

func (*HoldingsFilter) Sum

func (f *HoldingsFilter) Sum() token2.Quantity

type Manager

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

func NewManager

func NewManager(sp view2.ServiceProvider, driver string) *Manager

func (*Manager) AuditDB

func (cm *Manager) AuditDB(w *token.AuditorWallet) (*AuditDB, error)

type PaymentsFilter

type PaymentsFilter struct {
	EnrollmentIds  []string
	Types          []string
	LastNumRecords int
	// contains filtered or unexported fields
}

func (*PaymentsFilter) ByEnrollmentId

func (f *PaymentsFilter) ByEnrollmentId(id string) *PaymentsFilter

func (*PaymentsFilter) ByType

func (f *PaymentsFilter) ByType(tokenType string) *PaymentsFilter

func (*PaymentsFilter) Execute

func (f *PaymentsFilter) Execute() (*PaymentsFilter, error)

func (*PaymentsFilter) Last

func (f *PaymentsFilter) Last(num int) *PaymentsFilter

func (*PaymentsFilter) Sum

func (f *PaymentsFilter) Sum() token2.Quantity

type QueryExecutor

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

func (*QueryExecutor) Done

func (qe *QueryExecutor) Done()

func (*QueryExecutor) NewHoldingsFilter

func (qe *QueryExecutor) NewHoldingsFilter() *HoldingsFilter

func (*QueryExecutor) NewPaymentsFilter

func (qe *QueryExecutor) NewPaymentsFilter() *PaymentsFilter

type Status

type Status string
const (
	Pending Status = "Pending"
	Valid   Status = "Confirmed"
)

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto