Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNameInvalid = errors.New("name is empty")
)
View Source
var (
ErrNoRow = errors.New("no rows in result set")
)
Functions ¶
Types ¶
type Account ¶
type Account struct { ID int `json:"id" example:"1" format:"int64"` Name string `json:"name" example:"account name"` UUID uuid.UUID `json:"uuid" example:"550e8400-e29b-41d4-a716-446655440000" format:"uuid"` }
func AccountOne ¶
func AccountsAll ¶
type AddAccount ¶
type AddAccount struct {
Name string `json:"name" example:"account name"`
}
func (AddAccount) Validation ¶
func (a AddAccount) Validation() error
type Bottle ¶
type Bottle struct { ID int `json:"id" example:"1"` Name string `json:"name" example:"bottle_name"` Account Account `json:"account"` }
func BottlesAll ¶
type UpdateAccount ¶
type UpdateAccount struct {
Name string `json:"name" example:"account name"`
}
func (UpdateAccount) Validation ¶
func (a UpdateAccount) Validation() error
Click to show internal directories.
Click to hide internal directories.