types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause, MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceState_INITIALIZING = 1
	ServiceState_ABORTING     = 2
	ServiceState_STARTING     = 3
	ServiceState_STOPPING     = 5
	ServiceState_PAUSING      = 6
	ServiceState_RUNNING      = 7
	ServiceState_STOPPED      = 8
	ServiceState_ABORTED      = 9
	ServiceState_PAUSED       = 10
	ServiceState_IDLE         = 11
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Heartbeat

type Heartbeat struct {
	Name       string    `json:"name"`
	Version    *Version  `json:"version"`
	CurrentUTC time.Time `json:"currentutc"`
	Hostname   string    `json:"hostname"`
	GitVersion string    `json:"gitversion"`
}

type Message

type Message struct {
	Payload string `json:"payload"`
}

type MetaGetRequest

type MetaGetRequest struct {
	Name string `json:"name"`
}

type MetaLog

type MetaLog struct {
	Time        time.Time `json:"time"`
	Source      string    `json:"source"`
	Category    string    `json:"category"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
}

type MetaOpRequest

type MetaOpRequest struct {
	Operation string `json:"operation"`
}

type MetaSetRequest

type MetaSetRequest struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type MethodInfo

type MethodInfo struct {
	Name string `json:"name"`
}

type MethodInfos

type MethodInfos []*MethodInfo

type Request

type Request struct {
	Header  RequestHeader `json:"header"`
	Payload string        `json:"payload"`
}

type RequestHeader

type RequestHeader struct {
	Status Status `json:"status"`
	ToHost string `json:"tohost"`
}

type Response

type Response struct {
	Header  ResponseHeader `json:"header"`
	Payload string         `json:"payload"`
}

type ResponseHeader

type ResponseHeader struct {
	Status   Status `json:"status"`
	FromHost string `json:"fromhost"`
}

type ServiceInfo

type ServiceInfo struct {
	Name        string       `json:"name"`
	Description string       `json:"description"`
	MethodInfos MethodInfos  `json:"methods"`
	State       ServiceState `json:"state"`
}

type ServiceMetaResponse

type ServiceMetaResponse struct {
	ServiceInfos []*ServiceInfo `json:"infos"`
	State        ServiceState   `json:"state"`
}

type ServiceState

type ServiceState uint

type Settings

type Settings map[string]interface{}

type Status

type Status struct {
	ResultCode    int    `json:"code"`
	ResultMessage string `json:"message"`
}

type UsvcState

type UsvcState struct {
	Name       string    `json:"name"`
	GitVersion string    `json:"gitversion"`
	Status     int       `json:"status"`
	LastSeen   time.Time `json:"lastseen"`
}

type Version

type Version struct {
	Minor int `json:"minor"`
	Major int `json:"major"`
}

Jump to

Keyboard shortcuts

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