cmd

package
v0.0.0-...-552d5ff Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitCommit is the git reference injected at build
	GitCommit string
)

Functions

func Execute

func Execute()

Execute kicks off the command line

func RunWithCtx

func RunWithCtx(run func(ctx context.Context, cmd *cobra.Command, args []string)) func(cmd *cobra.Command, args []string)

RunWithCtx will execute a command within a context and provide cancelation on OS Signals

Types

type ChatMessage

type ChatMessage struct {
	Message string `json:"message,omitempty"`
	Name    string `json:"name,omitempty"`
}

ChatMessage is the structure of the messages to send and receive from the Topic / Subscription

type JoinParams

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

JoinParams are the parameters for the join command

Jump to

Keyboard shortcuts

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