web

package
v0.0.0-...-8d12173 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	URL      string
	User     string
	Pass     string
	Token    string
	Insecure bool
	Client   *resty.Client
}

func (*API) GetToken

func (a *API) GetToken() (*LoginResult, error)

type Login

type Login struct {
	Action   string `json:"action"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResult

type LoginResult struct {
	CID string
}

Jump to

Keyboard shortcuts

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