README ¶ voki JSON API caller and response unmarshaller Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Voki func New(client *http.Client, host, key string, port int, protocol string) *Voki func (v *Voki) Call(method, route string, requestBody io.Reader, useKey bool) (*http.Response, error) func (v *Voki) CallResponder(method, route string, requestBody io.Reader, useKey bool, ...) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Voki ¶ type Voki struct { Client *http.Client Host string Key string Port int Protocol string } func New ¶ func New(client *http.Client, host, key string, port int, protocol string) *Voki func (*Voki) Call ¶ added in v0.4.0 func (v *Voki) Call(method, route string, requestBody io.Reader, useKey bool) (*http.Response, error) func (*Voki) CallResponder ¶ added in v0.5.0 func (v *Voki) CallResponder(method, route string, requestBody io.Reader, useKey bool, responder response.Responder) error Makes Voki.Call() returning only an error. The Call data is put into the responder parameter's reference Source Files ¶ View all Source files voki.go Directories ¶ Show internal Expand all Path Synopsis response Click to show internal directories. Click to hide internal directories.