http

package
v0.0.0-...-717d3de Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(
	w http.ResponseWriter,
	r *http.Request,
	p *patrol.Patrol,
)

func Logs

func Logs(
	w http.ResponseWriter,
	r *http.Request,
	p *patrol.Patrol,
)

func STDErr

func STDErr(
	w http.ResponseWriter,
	r *http.Request,
	p *patrol.Patrol,
)

func STDOut

func STDOut(
	w http.ResponseWriter,
	r *http.Request,
	p *patrol.Patrol,
)

Types

type Data

type Data struct {
	Patrol     *patrol.Patrol     `json:"patrol,omitempty"`
	Status     *patrol.API_Status `json:"status,omitempty"`
	StatusPost *StatusPost        `json:"status-post,omitempty"`
	Now        time.Time          `json:"now,omitempty"`
	X          interface{}        `json:"x,omitempty"`
}

type StatusPost

type StatusPost struct {
	ID     string `json:"id,omitempty"`
	Group  string `json:"group,omitempty"`
	Secret string `json:"secret,omitempty"`
	Toggle uint8  `json:"toggle,omitempty"`
	Error  string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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