patrol: sabey.co/patrol/http Index | Files

package http

import "sabey.co/patrol/http"

Index

Package Files

index.go logs.go std.go

func Index Uses

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

func Logs Uses

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

func STDErr Uses

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

func STDOut Uses

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

type Data Uses

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 Uses

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"`
}

Package http imports 11 packages (graph) and is imported by 1 packages. Updated 2018-07-19. Refresh now. Tools for package owners.