Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateHandle ¶
type CreateHandle struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(db *sql.DB, domain string) CreateHandle
Create returns a handle to create and persist a Address.
func (CreateHandle) WithRandom ¶
func (c CreateHandle) WithRandom() (*session.Address, error)
WithRandom persists an address with the randomized username by uuid.
type FindHandle ¶
type FindHandle struct {
// contains filtered or unexported fields
}
func (FindHandle) All ¶
func (f FindHandle) All() (*[]session.Address, error)
All returns an array of Address.
func (FindHandle) Exists ¶
func (f FindHandle) Exists(addr session.Address) bool
Exists returns the addr exists in the DB or not.
func (FindHandle) Validate ¶
func (f FindHandle) Validate(t session.Transaction) error
Click to show internal directories.
Click to hide internal directories.