Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Method string `json:"method"` Resource string `json:"resource"` Tag string `json:"tag"` Parameters map[string][]string `json:"parameters"` }
Request is data sent to the Gutenfinder API.
func (*Request) GetParameter ¶
GetParameter gets the value of the given parameter. An error is returned if the parameter is not defined.
func (*Request) GetSingleParameter ¶
GetSingleParameter gets the first value of the given parameter. An error is returned if the parameter is not defined, or if there are not exactly one values.
Click to show internal directories.
Click to hide internal directories.