Documentation
¶
Index ¶
- func FindMaxReferenceCount() int
- func Generate() error
- func InsertNewAddress(address database.Address) error
- func InsertNewOrder(order *database.Order) error
- func QueryCategoriesFlat() interface{}
- func QueryCategoriesWithChildrenAndScores() interface{}
- func QueryCategoriesWithChildrenAndScoresPreserve() []database.Category
- func QueryOrders(payed bool) []database.Order
- func QueryScoresFlat() interface{}
- func SaveAddress(address database.Address) error
- func SaveCategory(category database.Category) error
- func SaveOrder(order database.Order) error
- func SaveScore(score database.Score) error
- func Serve(args context.ServiceArguments) (context.ServiceResult, error)
- type Attachment
- type DataQuery
- type MailData
- type PostedOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMaxReferenceCount ¶
func FindMaxReferenceCount() int
Finds the highest referenceCount value from the orders table
func InsertNewAddress ¶
Inserts new address to the database
func InsertNewOrder ¶
Inserts new order to the database
func QueryCategoriesFlat ¶
func QueryCategoriesFlat() interface{}
Queries all categories without a tree structure.
func QueryCategoriesWithChildrenAndScores ¶
func QueryCategoriesWithChildrenAndScores() interface{}
func QueryOrders ¶
func QueryScoresFlat ¶
func QueryScoresFlat() interface{}
Queries all scores without a tree structure.
func SaveAddress ¶
Inserts or updates a address to the database
func SaveCategory ¶
Inserts or updates a category to the database
func Serve ¶
func Serve(args context.ServiceArguments) (context.ServiceResult, error)
Serve function for this package.
Types ¶
type Attachment ¶
type PostedOrder ¶
type PostedOrder struct {
Dcity string
DpostCode string
Dstate string
Dstreet string
DstreetNumber string
City string
PostCode string
ScoreId uint
State string
Street string
StreetNumber string
Company string
Email string
FirstName string
LastName string
Salutation string
Telephone string
}
func (*PostedOrder) Order ¶
func (p *PostedOrder) Order() *database.Order
Click to show internal directories.
Click to hide internal directories.