dao

package
v0.0.0-...-3f87f2d Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatastore

func NewDatastore() error

our factory

Types

type Storage

type Storage interface {
	Check() error
	GetInbound(after string) ([]*api.Authorization, error)
	GetMatchingDepositAuthorization(e api.Authorization) ([]*api.Authorization, error)
	GetDepositAuthorizationByID(id string) ([]*api.Authorization, error)
	SearchDepositAuthorizationByCid(cid string) ([]*api.Authorization, error)
	SearchDepositAuthorizationByCreateDate(createdAt string) ([]*api.Authorization, error)
	SearchDepositAuthorizationByExportDate(exportedAt string) ([]*api.Authorization, error)
	CreateInbound(authID string) error
	CreateDepositAuthorization(reg api.Authorization) (*api.Authorization, error)
	DeleteDepositAuthorizationByID(id string) (int64, error)
	GetDepositAuthorizationForExport() ([]*api.Authorization, error)
	UpdateExportedDepositAuthorization(exports []*api.Authorization) error
	UpdateDepositAuthorizationByIDSetFulfilled(id string, did string) error
	UpdateDepositAuthorizationByIDSetTitle(id string, title string) error
	GetFieldMapperList() ([]*mapper, error)
}

our storage interface

var Store Storage

our singleton store

Jump to

Keyboard shortcuts

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