server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Ver          string
	VerSdkFabric string
}

type LivenessMng

type LivenessMng struct {
	// contains filtered or unexported fields
}

func StartServer

func StartServer(ctx context.Context, serverPort uint,
	appInfo *AppInfo, robots []string, metricsH http.Handler,
) (*LivenessMng, func(), error)

func (*LivenessMng) SetRobotState

func (lm *LivenessMng) SetRobotState(chName string, state RobotState)

type RobotState

type RobotState string
const (
	RobotStarted        RobotState = "started"
	RobotStopped        RobotState = "stopped"
	RobotStoppedWithErr RobotState = "stoppedWithErr"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳