Documentation ¶
Index ¶
- type CommandHandler
- func (ch *CommandHandler) CloseMeeting(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) CreateMeeting(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) Invite(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) Notify(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) PutProduct(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) RemoveProduct(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) SetBuyer(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) SetPlace(w http.ResponseWriter, req *http.Request) error
- func (ch *CommandHandler) ToggleOrderPayed(w http.ResponseWriter, req *http.Request) error
- type Interactor
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler struct {
Interactor
}
func (*CommandHandler) CloseMeeting ¶
func (ch *CommandHandler) CloseMeeting(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request closemeeting.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "meetingID": "", "login": { "mail": "", "password": "" } }
func (*CommandHandler) CreateMeeting ¶
func (ch *CommandHandler) CreateMeeting(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request createmeeting.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "meeting": { "id": "", "place": "", "creator": "", "buyer": "", "date": "0001-01-01T00:00:00Z", "closeDate": "0001-01-01T00:00:00Z", "closed": false, "orders": null, "offer": null }, "login": { "mail": "", "password": "" } }
func (*CommandHandler) Invite ¶
func (ch *CommandHandler) Invite(w http.ResponseWriter, req *http.Request) error
func (*CommandHandler) Notify ¶
func (ch *CommandHandler) Notify(w http.ResponseWriter, req *http.Request) error
func (*CommandHandler) PutProduct ¶
func (ch *CommandHandler) PutProduct(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request putproduct.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "meetingID": "", "product": { "name": "", "price": 0 }, "login": { "mail": "", "password": "" } }
func (*CommandHandler) RemoveProduct ¶
func (ch *CommandHandler) RemoveProduct(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request removeproduct.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "productName": "", "meetingID": "", "login": { "mail": "", "password": "" } }
func (*CommandHandler) SetBuyer ¶
func (ch *CommandHandler) SetBuyer(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request setbuyer.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "buyer": "", "meetingID": "", "login": { "mail": "", "password": "" } }
func (*CommandHandler) SetPlace ¶
func (ch *CommandHandler) SetPlace(w http.ResponseWriter, req *http.Request) error
Example ¶
// Send a json Request in this form var request setplace.Request data, _ := json.MarshalIndent(request, "", " ") fmt.Printf("%s", data)
Output: { "place": "", "meetingID": "", "login": { "mail": "", "password": "" } }
func (*CommandHandler) ToggleOrderPayed ¶
func (ch *CommandHandler) ToggleOrderPayed(w http.ResponseWriter, req *http.Request) error
type Interactor ¶
Click to show internal directories.
Click to hide internal directories.