voki

package module
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-2.0 Imports: 5 Imported by: 1

README

voki

JSON API caller and response unmarshaller

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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