svcmsg

package
v0.0.0-...-277eb20 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package svcmsg models the Exit Code data that the executor must communicate to the service.

IMPORTANT: This package should have minimal dependencies as it will be imported by cmd/state-exec. The resulting compiled executable must remain as small as possible.

Package svcmsg models the Heartbeat data that the executor must communicate to the service.

IMPORTANT: This package should have minimal dependencies as it will be imported by cmd/state-exec. The resulting compiled executable must remain as small as possible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitCode

type ExitCode struct {
	ExecPath string
	ExitCode string
}

func NewExitCode

func NewExitCode(execPath, exitCode string) *ExitCode

func NewExitCodeFromSvcMsg

func NewExitCodeFromSvcMsg(data string) *ExitCode

func (*ExitCode) SvcMsg

func (e *ExitCode) SvcMsg() string

type Heartbeat

type Heartbeat struct {
	ProcessID string
	ExecPath  string
}

func NewHeartbeat

func NewHeartbeat(pid, execPath string) *Heartbeat

func NewHeartbeatFromSvcMsg

func NewHeartbeatFromSvcMsg(data string) *Heartbeat

func (*Heartbeat) SvcMsg

func (h *Heartbeat) SvcMsg() string

type Messager

type Messager interface {
	SvcMsg() string
}

Jump to

Keyboard shortcuts

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