nightmare

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

ErrorResponse error response

type KillInput

type KillInput struct {
	Desc string `json:"desc"`
}

type KilledProcess

type KilledProcess struct {
	Name string `json:"name"`
	Desc string `json:"desc"`
	PID  int    `json:"pid"`
	PPID int    `json:"ppid"`
}

type NightmareMonkey

type NightmareMonkey struct {
	Host       string
	Name       string
	ListenPort int
	Logger     *log.Logger
	Interval   uint64
	Dryrun     bool
	// contains filtered or unexported fields
}

func New

func New(port int, interval uint64, playingDay string, playingTime string) (monkey *NightmareMonkey, err error)

func (*NightmareMonkey) Nightmare

func (monkey *NightmareMonkey) Nightmare()

func (*NightmareMonkey) Play

func (monkey *NightmareMonkey) Play()

type SimpleTime

type SimpleTime struct {
	Hour   int
	Minute int
}

Jump to

Keyboard shortcuts

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