Documentation
¶
Overview ¶
Package verification provides a core business API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("verification not found")
)
Set of error variables for CRUD operations.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core manages the set of APIs for verification access.
func (*Core) Create ¶
func (c *Core) Create(nv NewVerification) (Verificiation, error)
Create adds a new verification to the system.
func (*Core) QueryByID ¶
func (c *Core) QueryByID(id uuid.UUID) (Verificiation, error)
QueryByID finds the verification by the specified ID.
func (*Core) Update ¶
func (c *Core) Update(vrf Verificiation, used *bool) (Verificiation, error)
type Storer ¶
type Storer interface {
WithinTran(fn func(s Storer) error) error
Create(vrf Verificiation) error
Update(vrf Verificiation) error
QueryByID(id uuid.UUID) (Verificiation, error)
}
Storer interface declares the behavior this package needs to perists and retrieve data.
Click to show internal directories.
Click to hide internal directories.