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
Click to show internal directories.
Click to hide internal directories.