Documentation
¶
Index ¶
- func ContextWithSignal(ctx context.Context) context.Context
- func NewCheckCmd(ctx context.Context) *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewServerStartCmd(ctx context.Context) *cobra.Command
- func NewVersionCmd(ctx context.Context) *cobra.Command
- func RunCheck(cmd *cobra.Command, args []string) error
- func RunServerStart(ctx context.Context, opts *ServerStartOptions) error
- type ServerStartOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithSignal ¶
ContextWithSignal create a context cancelled when SIGINT or SIGTERM are notified
func NewCheckCmd ¶
NewCheckCmd creates a new check command
func NewRootCmd ¶
NewRootCmd creates a new instance of the root command
func NewServerStartCmd ¶
NewServerStartCmd creates a new http server command
func NewVersionCmd ¶
NewVersionCmd creates a new version command
func RunServerStart ¶
func RunServerStart(ctx context.Context, opts *ServerStartOptions) 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
Click to show internal directories.
Click to hide internal directories.