cmd

package
v0.0.0-...-ae9090d Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func IsLinuxVersionSupported

func IsLinuxVersionSupported(
	distro string,
	version string,
) bool

IsLinuxVersionSupported checks if the given distribution and version are supported.

Types

type ClientManager

type ClientManager interface {
	// SetupJetStream creates the JetStream connection and stream configuration.
	SetupJetStream(js nats.JetStreamContext) error
}

ClientManager responsible for Client operations.

type ServerManager

type ServerManager interface {
	// Start starts the server.
	Start() error
	// Stop gracefully stops the embedded NATS server.
	Stop()
}

ServerManager responsible for Server operations.

Jump to

Keyboard shortcuts

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