bigpandatest

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostData

type PostData struct {
	AppKey            string            `json:"app_key"`
	Status            string            `json:"status"`
	Host              string            `json:"host"`
	Timestamp         int64             `json:"timestamp"`
	Check             string            `json:"check"`
	Description       string            `json:"description"`
	Cluster           string            `json:"cluster"`
	Task              string            `json:"task"`
	Details           string            `json:"details"`
	PrimaryProperty   string            `json:"primary_property"`
	SecondaryProperty string            `json:"secondary_property"`
	Attributes        map[string]string `json:"-,omitempty"`
}

PostData is the default struct to send an element through to BigPanda

func (*PostData) UnmarshalJSON added in v1.6.3

func (pd *PostData) UnmarshalJSON(data []byte) error

type Request

type Request struct {
	URL      string
	PostData PostData
}

type Server

type Server struct {
	URL string
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Requests

func (s *Server) Requests() []Request

Jump to

Keyboard shortcuts

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