serviceLog

package module
v0.0.0-...-d023303 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogMessage

func GetLogMessage(s Service, e Event) (string, error)

Types

type Event

type Event struct {
	ShortMessage string `json:"short_message"`
	EventDetails string `json:"event_details,omitempty"`
	Succesful    bool   `json:"succesful,omitempty"`
	Severity     string `json:"severity,omitempty"`
	Measurement  string `json:"measurement,omitempty"`
}

type Service

type Service struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"service"`
	Build       string    `json:"build_date,omitempty"`
	Version     string    `json:"version"`
	IPAddr      string    `json:"ip_addr,omitempty"`
	Host        string    `json:"host,omitempty"`
	Environment string    `json:"environment,omitempty"`
	Debugging   bool      `json:"debugging,omitempty"`
}

func SetService

func SetService(s string, v string, b string, e string, d bool) (Service, error)

Jump to

Keyboard shortcuts

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