queue

package
v0.0.0-...-7febb3a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdQueue

func NewCmdQueue(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueAck

func NewCmdQueueAck(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueAttach

func NewCmdQueueAttach(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueList

func NewCmdQueueList(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueuePeek

func NewCmdQueuePeek(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueReceive

func NewCmdQueueReceive(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueSend

func NewCmdQueueSend(ctx context.Context, cfg *config.Config) *cobra.Command

func NewCmdQueueStream

func NewCmdQueueStream(ctx context.Context, cfg *config.Config) *cobra.Command

Types

type AckOptions

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

func (*AckOptions) Complete

func (o *AckOptions) Complete(args []string) error

func (*AckOptions) Run

func (o *AckOptions) Run(ctx context.Context) error

func (*AckOptions) Validate

func (o *AckOptions) Validate() error

type AttachOptions

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

func (*AttachOptions) Complete

func (o *AttachOptions) Complete(args []string) error

func (*AttachOptions) Run

func (o *AttachOptions) Run(ctx context.Context) error

func (*AttachOptions) Validate

func (o *AttachOptions) Validate() error

type Client

type Client struct {
	ClientId         string `json:"client_id"`
	Active           bool   `json:"active"`
	LastSequenceSent int64  `json:"last_sequence_sent"`
	IsStalled        bool   `json:"is_stalled"`
	Pending          int64  `json:"pending"`
}

type ListOptions

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

func (*ListOptions) Complete

func (o *ListOptions) Complete(args []string) error

func (*ListOptions) Run

func (o *ListOptions) Run(ctx context.Context) error

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

type PeekOptions

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

func (*PeekOptions) Complete

func (o *PeekOptions) Complete(args []string) error

func (*PeekOptions) Run

func (o *PeekOptions) Run(ctx context.Context) error

func (*PeekOptions) Validate

func (o *PeekOptions) Validate() error

type Queue

type Queue struct {
	Name          string    `json:"name"`
	Messages      int64     `json:"messages"`
	Bytes         int64     `json:"bytes"`
	FirstSequence int64     `json:"first_sequence"`
	LastSequence  int64     `json:"last_sequence"`
	Clients       []*Client `json:"clients"`
}

type Queues

type Queues struct {
	Now    time.Time `json:"now"`
	Total  int       `json:"total"`
	Queues []*Queue  `json:"queues"`
}

type ReceiveOptions

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

func (*ReceiveOptions) Complete

func (o *ReceiveOptions) Complete(args []string) error

func (*ReceiveOptions) Run

func (o *ReceiveOptions) Run(ctx context.Context) error

func (*ReceiveOptions) Validate

func (o *ReceiveOptions) Validate() error

type Response

type Response struct {
	Node        string          `json:"node"`
	Error       bool            `json:"error"`
	ErrorString string          `json:"error_string"`
	Data        json.RawMessage `json:"data"`
}

type SendOptions

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

func (*SendOptions) Complete

func (o *SendOptions) Complete(args []string) error

func (*SendOptions) Run

func (o *SendOptions) Run(ctx context.Context) error

func (*SendOptions) Validate

func (o *SendOptions) Validate() error

type StreamOptions

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

func (*StreamOptions) Complete

func (o *StreamOptions) Complete(args []string) error

func (*StreamOptions) Run

func (o *StreamOptions) Run(ctx context.Context) error

func (*StreamOptions) Validate

func (o *StreamOptions) Validate() error

Jump to

Keyboard shortcuts

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