client

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(params Params) *Client

func (*Client) AwaitSignal

func (c *Client) AwaitSignal(ctx context.Context, queueSignalID string) (*handler.FinishedResponse, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, req *CreateQueueRequest) (*app.Queue, error)

func (*Client) EnqueueSignal

func (c *Client) EnqueueSignal(ctx context.Context, queueID string, sig signal.Signal) (*queue.EnqueueResponse, error)

func (*Client) GetQueue

func (c *Client) GetQueue(ctx context.Context, id string) (*app.Queue, error)

func (*Client) QueueReady

func (c *Client) QueueReady(ctx context.Context, queueID string) error

func (*Client) Restart

func (c *Client) Restart(ctx context.Context, queueID string) error

type CreateQueueRequest

type CreateQueueRequest struct {
	OwnerID   string `validate:"required"`
	OwnerType string `validate:"required"`
	Namespace string `validate:"required"`

	MaxInFlight int
	MaxDepth    int
}

type Params

type Params struct {
	fx.In

	DB      *gorm.DB `name:"psql"`
	Cfg     *internal.Config
	TClient temporalclient.Client
	L       *zap.Logger
}

Jump to

Keyboard shortcuts

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