api_rest

package
v2.24.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0 Imports: 20 Imported by: 0

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