cmd

package
v0.0.0-...-ce8de81 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSignal

func ContextWithSignal(ctx context.Context) context.Context

ContextWithSignal create a context cancelled when SIGINT or SIGTERM are notified

func NewCheckCmd

func NewCheckCmd(ctx context.Context) *cobra.Command

NewCheckCmd creates a new check command

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

NewRootCmd creates a new instance of the root command

func NewServerStartCmd

func NewServerStartCmd(ctx context.Context, version string) *cobra.Command

NewServerStartCmd creates a new http server command

func RunCheck

func RunCheck(cmd *cobra.Command, args []string) error

RunCheck is the run command to check Janus configurations

func RunServerStart

func RunServerStart(ctx context.Context, opts *ServerStartOptions, version string) error

RunServerStart is the run command to start Janus

Types

type ServerStartOptions

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

ServerStartOptions are the command flags

Jump to

Keyboard shortcuts

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