Documentation
¶
Index ¶
- type BaseAction
- type Drinks
- type Factory
- type Manager
- func (DBM *Manager) AddUser(name string, tgId int) (user User, err error)
- func (DBM *Manager) DeleteOrder(orderId int) (res bool, err error)
- func (DBM *Manager) DeleteUser(userId int) (err error)
- func (DBM *Manager) DeleteUsers() (res bool, err error)
- func (DBM *Manager) Exec(sql string) (interface{}, error)
- func (DBM *Manager) GetOrder(orderId int) (order Order)
- func (DBM *Manager) GetOrders() (orders []Order, err error)
- func (DBM *Manager) GetUser(userId int) (user User, err error)
- func (DBM *Manager) GetUsers() (users []User, err error)
- type Operations
- type Order
- type OrderAction
- type User
- type UserAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAction ¶
type Drinks ¶
type Drinks struct { Id int `db:"id"` Name string `db:"name"` CreatedAt string `db:"created_at" json:"created_at"` UpdatedAt sql.NullString `db:"updated_at" json:"updated_at"` }
type Factory ¶
type Factory struct { Id int `db:"id"` Name string `db:"name"` CreatedAt string `db:"created_at" json:"created_at"` UpdatedAt sql.NullString `db:"updated_at" json:"updated_at"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) DeleteUser ¶
func (*Manager) DeleteUsers ¶
type OrderAction ¶
Click to show internal directories.
Click to hide internal directories.