command

package
v0.0.0-...-0ba6107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL