builder

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base added in v0.0.2

type Base struct {
	*Provider
	// contains filtered or unexported fields
}

func NewBase added in v0.0.2

func NewBase() *Base

func (*Base) Label added in v0.0.2

func (b *Base) Label(label string) (base *Base)

func (*Base) Queue added in v0.0.2

func (b *Base) Queue(queue string) (base *Base)

func (*Base) Url added in v0.0.2

func (b *Base) Url(url string) (base *Base)

type Handle

type Handle struct {
	*Receive
	// contains filtered or unexported fields
}

func NewHandle

func NewHandle(
	client *param.Client,
	receive callback.ReceiveMessage,
	url callback.Url,
	visibility callback.ChangeMessageVisibility,
	delete callback.DeleteMessage,
) *Handle

func (*Handle) Build

func (h *Handle) Build() *worker.Handle

func (*Handle) Decoder

func (h *Handle) Decoder(decoder transcoder.Decoder) (handle *Handle)

func (*Handle) Interval

func (h *Handle) Interval(duration time.Duration) (handle *Handle)

func (*Handle) Times

func (h *Handle) Times(max int) (handle *Handle)

type Provider added in v0.0.2

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

func NewProvider added in v0.0.2

func NewProvider() *Provider

func (*Provider) Credentials added in v0.0.2

func (p *Provider) Credentials(credentials aws.CredentialsProvider) (provider *Provider)

type Receive

type Receive struct {
	*Base
	// contains filtered or unexported fields
}

func NewReceive

func NewReceive(client *param.Client, receive callback.ReceiveMessage, url callback.Url) *Receive

func (*Receive) Attributes

func (r *Receive) Attributes(names ...string) (receive *Receive)

func (*Receive) Build

func (r *Receive) Build() *worker.Receive

func (*Receive) Label

func (r *Receive) Label(label string) (receive *Receive)

func (*Receive) Names

func (r *Receive) Names(names ...types.QueueAttributeName) (receive *Receive)

func (*Receive) Number

func (r *Receive) Number(number int32) (receive *Receive)

func (*Receive) Visibility

func (r *Receive) Visibility(timeout time.Duration) (receive *Receive)

func (*Receive) Wait

func (r *Receive) Wait(wait time.Duration) (receive *Receive)

type Send

type Send struct {
	*Base
	// contains filtered or unexported fields
}

func NewSend

func NewSend(send callback.SendMessage, url callback.Url) *Send

func (*Send) Attribute

func (s *Send) Attribute(key string, value types.MessageAttributeValue) (send *Send)

func (*Send) Build

func (s *Send) Build() *worker.Send

func (*Send) Data added in v0.0.3

func (s *Send) Data(data any) (send *Send)

func (*Send) Delay

func (s *Send) Delay(delay time.Duration) (send *Send)

func (*Send) Encoder

func (s *Send) Encoder(encoder transcoder.Encoder) (send *Send)

func (*Send) Label

func (s *Send) Label(label string) (send *Send)

func (*Send) System

func (s *Send) System(key string, value types.MessageSystemAttributeValue) (send *Send)

type Url added in v0.0.2

type Url struct {
	*Base
	// contains filtered or unexported fields
}

func NewUrl added in v0.0.2

func NewUrl(url callback.Url) *Url

func (*Url) Build added in v0.0.2

func (u *Url) Build() *worker.Url

Jump to

Keyboard shortcuts

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