consistency

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus

func GetStatus(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

GetStatus gets consistency status

func HandleSubrouter

func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

HandleSubrouter for api access to consistency information

func Options

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

func PostAck

func PostAck(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

PostAck posts an acknowledgement

func PostAutoCheck

func PostAutoCheck(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

PostAutoCheck posts results about an auto check

Types

type AckMongo

type AckMongo struct {
	AckStatus       string `bson:"ack_status" json:"status"`
	AckMsg          string `bson:"ack_message" json:"message"`
	AckTimestamp    string `bson:"ack_timestamp" json:"timestamp"`
	AckTimeoutHours int    `bson:"ack_timeout_hours" json:"timeout_hours"`
}

type AutoCheckMongo

type AutoCheckMongo struct {
	AutoCheckStatus    string `bson:"auto_check_status" json:"status"`
	AutoCheckMsg       string `bson:"auto_check_message" json:"message"`
	AutoCheckTimestamp string `bson:"auto_check_timestamp" json:"timestamp"`
}

type DataMongo

type DataMongo struct {
	AutoCheckStatus    string `bson:"auto_check_status"`
	AutoCheckMsg       string `bson:"auto_check_message"`
	AutoCheckTimestamp string `bson:"auto_check_timestamp"`
	AckStatus          string `bson:"ack_status"`
	AckMsg             string `bson:"ack_message"`
	AckTimestamp       string `bson:"ack_timestamp"`
	AckTimeoutHours    int    `bson:"ack_timeout_hours"`
}

type Result

type Result struct {
	Status             string `json:"status"`
	Timestamp          string `json:"timestamp"`
	Message            string `json:"message"`
	AutoCheckStatus    string `json:"auto_check_status,omitempty"`
	AutoCheckMsg       string `json:"auto_check_mesage,omitempty"`
	AutoCheckTimestamp string `json:"auto_check_timestamp,omitempty"`
	AckStatus          string `json:"ack_status,omitempty"`
	AckMsg             string `json:"ack_message,omitempty"`
	AckTimestamp       string `json:"ack_timestamp,omitempty"`
	AckTimeoutHours    int    `json:"ack_timeout_hours,omitempty"`
}

Jump to

Keyboard shortcuts

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