Documentation ¶
Index ¶
- type Order
- type RowsAffected
- type Server
- func (s *Server) AddOrder(order_id string, description string) ([]Order, error)
- func (s *Server) DeleteOrder(order_id string) (RowsAffected, error)
- func (s *Server) EditOrder(order_id string, description string) (RowsAffected, error)
- func (s *Server) GetOrder(order_id string) ([]Order, error)
- func (s *Server) GetOrders() ([]Order, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { Orderid string `json:"order_id"` Description string `json:"description"` Created time.Time `json:"created"` }
Order -
type RowsAffected ¶
type RowsAffected struct {
RowsAffected int64
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func InitDatabase ¶
func InitDatabase() *Server
InitDatabase - sets database connection configuration
func (*Server) DeleteOrder ¶
func (s *Server) DeleteOrder(order_id string) (RowsAffected, error)
Click to show internal directories.
Click to hide internal directories.