Documentation
¶
Index ¶
- func CreateClient(opts *ClientOptions) (*client.ChronoQueueClient, error)
- func CreateContext(cmd *cobra.Command) (context.Context, context.CancelFunc)
- func GetOutputFormat(cmd *cobra.Command) outputs.OutputFormat
- func NewDLQCommand() *cobra.Command
- func NewMessageCommand() *cobra.Command
- func NewQueueCommand() *cobra.Command
- func NewScheduleCommand() *cobra.Command
- func NewSchemaCommand() *cobra.Command
- func NewServerCommand() *cobra.Command
- func NewStartCommand() *cobra.Command
- func NewUICommand() *cobra.Command
- func NewUIStartCommand() *cobra.Command
- func WithClient(cmd *cobra.Command, fn func(*client.ChronoQueueClient) error) error
- type ClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(opts *ClientOptions) (*client.ChronoQueueClient, error)
CreateClient creates a new ChronoQueue client with the given options
func CreateContext ¶
CreateContext creates a context with timeout if specified
func GetOutputFormat ¶
func GetOutputFormat(cmd *cobra.Command) outputs.OutputFormat
GetOutputFormat extracts output format from cobra command flags
func NewDLQCommand ¶
NewDLQCommand creates the Dead Letter Queue command group
func NewMessageCommand ¶
NewMessageCommand creates the message command group
func NewQueueCommand ¶
NewQueueCommand creates the queue command group
func NewScheduleCommand ¶
NewScheduleCommand creates the schedule command group
func NewSchemaCommand ¶
NewSchemaCommand creates the schema command group
func NewServerCommand ¶
NewServerCommand creates the server command group
func NewStartCommand ¶
NewStartCommand creates the start command group
func NewUICommand ¶ added in v1.1.0
NewUICommand creates the ui command
func NewUIStartCommand ¶ added in v1.1.0
NewUIStartCommand creates the ui start command
func WithClient ¶
WithClient is a helper function that creates a client and passes it to a function
Types ¶
type ClientOptions ¶
type ClientOptions struct {
Server string
Insecure bool
CertFile string
KeyFile string
CAFile string
Timeout time.Duration
Verbose bool
}
ClientOptions holds configuration for the ChronoQueue client
func GetClientOptions ¶
func GetClientOptions(cmd *cobra.Command) (*ClientOptions, error)
GetClientOptions extracts client options from cobra command flags