bettercap: github.com/bettercap/bettercap/modules/api_rest Index | Files

package api_rest

import "github.com/bettercap/bettercap/modules/api_rest"

Index

Package Files

api_rest.go api_rest_controller.go api_rest_record.go api_rest_replay.go api_rest_ws.go

type APIResponse Uses

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

type CommandRequest Uses

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

type JSSessionRequest Uses

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

type JSSessionResponse Uses

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

type RestAPI Uses

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

func NewRestAPI Uses

func NewRestAPI(s *session.Session) *RestAPI

func (*RestAPI) Author Uses

func (mod *RestAPI) Author() string

func (*RestAPI) Configure Uses

func (mod *RestAPI) Configure() error

func (*RestAPI) Description Uses

func (mod *RestAPI) Description() string

func (*RestAPI) Name Uses

func (mod *RestAPI) Name() string

func (*RestAPI) Start Uses

func (mod *RestAPI) Start() error

func (*RestAPI) Stop Uses

func (mod *RestAPI) Stop() error

Package api_rest imports 20 packages (graph) and is imported by 3 packages. Updated 2019-05-03. Refresh now. Tools for package owners.