Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomRequestDecoder ¶
CustomRequestDecoder overrides the RequestDecoder provided by goahttp package It returns always a json.NewDecoder for legacy reasons: The web editor sends always request to the agent setting "Content-Type: text/plain" even when it should set "Content-Type: application/json". This breaks the parsing with: "can't decode text/plain to *server.InstallRequestBody" error message. This was working before the bump to goa v3 only because a "text/plain" decoder was not implemented and it was fallbacking to the json decoder. (https://github.com/goadesign/goa/pull/2310)
Types ¶
type LogAdapter ¶
LogAdapter is the adapter for the logger
func (LogAdapter) Log ¶
func (a LogAdapter) Log(keyvals ...interface{}) error
Log is the log function
Directories
¶
Path | Synopsis |
---|---|
Package pkgs implements the functions from github.com/arduino-create-agent/gen/indexes and github.com/arduino-create-agent/gen/tools.
|
Package pkgs implements the functions from github.com/arduino-create-agent/gen/indexes and github.com/arduino-create-agent/gen/tools. |
Click to show internal directories.
Click to hide internal directories.