momkat

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChildKatAndSet

func CheckChildKatAndSet(myServerID string)

Loop:

  1. start timer
  2. called by others => reset timer
  3. fired and be a MomKat (1) get childkat list (2) get the fist command (3) MomKat: if Command is not nil, run it! (4) check childkat liveness and set (5) request the Command to all ChildKat (6) clear the fist command after all completions.

func GetAndSetStatus

func GetAndSetStatus(statusInfo common.StatusInfo)

func RunCommand

func RunCommand(myServerID string, cmd *common.Command) (*common.CommandResult, error)

func RunCommandAndSetResult

func RunCommandAndSetResult(statusInfo common.StatusInfo, cmd *common.Command)

func RunMomKatCommandAndSetResult

func RunMomKatCommandAndSetResult(myServerID string, cmd *common.Command)

func SetImMomKat

func SetImMomKat(myServerID string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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