cmd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func ParseInput added in v0.10.1

func ParseInput(input string) (command string, params []string)

func ResetSystemInfo added in v0.10.1

func ResetSystemInfo[T any](m *dynamomq.Message[T], now time.Time)

Types

type CommandFactory added in v0.10.1

type CommandFactory struct {
	CreateDynamoMQClient func(ctx context.Context, flags *Flags) (dynamomq.Client[any], aws.Config, error)
	Stdin                io.Reader
}

func (CommandFactory) CreatReceiveCommand added in v0.10.1

func (f CommandFactory) CreatReceiveCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateDLQCommand added in v0.10.1

func (f CommandFactory) CreateDLQCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateDeleteCommand added in v0.10.1

func (f CommandFactory) CreateDeleteCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateEnqueueTestCommand added in v0.10.1

func (f CommandFactory) CreateEnqueueTestCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateFailCommand added in v0.10.1

func (f CommandFactory) CreateFailCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateGetCommand added in v0.10.1

func (f CommandFactory) CreateGetCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateInvalidCommand added in v0.10.1

func (f CommandFactory) CreateInvalidCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateLSCommand added in v0.10.1

func (f CommandFactory) CreateLSCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreatePurgeCommand added in v0.10.1

func (f CommandFactory) CreatePurgeCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateQueueStatCommand added in v0.10.1

func (f CommandFactory) CreateQueueStatCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateRedriveCommand added in v0.10.1

func (f CommandFactory) CreateRedriveCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateResetCommand added in v0.10.1

func (f CommandFactory) CreateResetCommand(flgs *Flags) *cobra.Command

func (CommandFactory) CreateRootCommand added in v0.10.1

func (f CommandFactory) CreateRootCommand(flgs *Flags) *cobra.Command

type EnqueueTestResult added in v0.8.0

type EnqueueTestResult struct {
	Successes []string `json:"successes"`
}

type Failure added in v0.8.0

type Failure struct {
	ID    string
	Error error
}

type FlagMap added in v0.8.0

type FlagMap struct {
	TableName   FlagSet[string]
	IndexName   FlagSet[string]
	EndpointURL FlagSet[string]
	ID          FlagSet[string]
}

type FlagSet added in v0.8.0

type FlagSet[T any] struct {
	Name  string
	Usage string
	Value T
}

type Flags

type Flags struct {
	TableName   string
	IndexName   string
	EndpointURL string

	ID string
}

type Interactive

type Interactive struct {
	Client  dynamomq.Client[any]
	Message *dynamomq.Message[any]
}

func (*Interactive) Run

func (c *Interactive) Run(ctx context.Context, command string, params []string) (err error)

func (*Interactive) Start added in v0.10.1

func (c *Interactive) Start(in io.Reader) error

type LSResult added in v0.8.0

type LSResult struct {
	Statuses []Status `json:"statuses"`
}

type PurgeResult added in v0.8.0

type PurgeResult struct {
	Successes []string  `json:"successes"`
	Failures  []Failure `json:"failures"`
}

type Status added in v0.8.0

type Status struct {
	ID        string             `json:"id"`
	Status    dynamomq.Status    `json:"status"`
	QueueType dynamomq.QueueType `json:"queue_type"`
}

type SystemInfo added in v0.10.1

type SystemInfo struct {
	ID               string             `json:"id"`
	Status           dynamomq.Status    `json:"status"`
	ReceiveCount     int                `json:"receive_count"`
	QueueType        dynamomq.QueueType `json:"queue_type"`
	Version          int                `json:"version"`
	CreatedAt        string             `json:"created_at"`
	UpdatedAt        string             `json:"updated_at"`
	SentAt           string             `json:"sent_at"`
	ReceivedAt       string             `json:"received_at"`
	InvisibleUntilAt string             `json:"invisible_until_at"`
}

func GetSystemInfo added in v0.10.1

func GetSystemInfo[T any](m *dynamomq.Message[T]) *SystemInfo

Jump to

Keyboard shortcuts

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