api_rest

package
v2.21.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: GPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Success bool   `json:"success"`
	Message string `json:"msg"`
}

type CommandRequest

type CommandRequest struct {
	Command string `json:"cmd"`
}

type JSSessionRequest

type JSSessionRequest struct {
	Command string `json:"cmd"`
}

type JSSessionResponse

type JSSessionResponse struct {
	Error string `json:"error"`
}

type RestAPI

type RestAPI struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewRestAPI

func NewRestAPI(s *session.Session) *RestAPI

func (*RestAPI) Author

func (mod *RestAPI) Author() string

func (*RestAPI) Configure

func (mod *RestAPI) Configure() error

func (*RestAPI) Description

func (mod *RestAPI) Description() string

func (*RestAPI) Name

func (mod *RestAPI) Name() string

func (*RestAPI) Start

func (mod *RestAPI) Start() error

func (*RestAPI) Stop

func (mod *RestAPI) Stop() error

Jump to

Keyboard shortcuts

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