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