request

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters map[string]interface{}

type Request

type Request struct {
	Service    string     `json:"service"`
	Method     string     `json:"method"`
	Parameters Parameters `json:"parameters"`
}

Request contains information that form an API request. The struct is json-encoded before being sent to the API.

func New

func New(service, method string, params Parameters) *Request

New returns a new request object.

func NewLogin

func NewLogin(username, password string) *Request

NewLogin returns a new authentication request object.

Jump to

Keyboard shortcuts

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