async

package
v0.0.0-...-d13da26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Option

type Option func(shop *SimpleWorkShop)

func WithRetry

func WithRetry(strategy retry.Strategy) Option

type RateLimitFailOverService

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

func (*RateLimitFailOverService) Send

func (r *RateLimitFailOverService) Send(ctx context.Context, tpl string, args []string, numbers ...string) error

type SimpleWorkShop

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

func (*SimpleWorkShop) IsStarted

func (w *SimpleWorkShop) IsStarted() bool

func (*SimpleWorkShop) Start

func (w *SimpleWorkShop) Start(ctx context.Context)

type Workshop

type Workshop interface {
	Start(ctx context.Context)
	IsStarted() bool
}

func NewSimpleWorkShop

func NewSimpleWorkShop(agentCnt int, repo repository.SmsRepository, svc sms.Service, opts ...Option) Workshop

Jump to

Keyboard shortcuts

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