auditor

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Validate(ctx context.Context, request *token.Request) error
	Audit(ctx context.Context, tx auditor.Transaction) (*token.InputStream, *token.OutputStream, error)
	Release(ctx context.Context, tx auditor.Transaction)
	GetTokenRequest(ctx context.Context, id string) ([]byte, error)
	Check(ctx context.Context) ([]string, error)
}

Service models the auditor service

type ServiceProvider

type ServiceProvider interface {
	// AuditorService return the auditor service and store service for the given tms id
	AuditorService(tmsID token.TMSID) (Service, StoreService, error)
}

ServiceProvider provides instances of ServiceProvider.

func GetServiceProvider

func GetServiceProvider(sp token.ServiceProvider) (ServiceProvider, error)

GetServiceProvider retrieves the ServiceProvider from the given ServiceProvider.

type StoreService

type StoreService interface {
	Transactions(ctx context.Context, params db.QueryTransactionsParams, pagination db.Pagination) (*db.PageTransactionsIterator, error)
	NewPaymentsFilter() *auditdb.PaymentsFilter
	NewHoldingsFilter() *auditdb.HoldingsFilter
	SetStatus(ctx context.Context, id string, status driver.TxStatus, message string) error
}

StoreService models the audit storage service

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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