ratelimit

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRatelimitSMSService

func NewRatelimitSMSService(svc sms.Service, limiter ratelimit.Limiter) sms.Service

func NewRatelimitSMSServiceV1

func NewRatelimitSMSServiceV1(svc sms.Service, limiter ratelimit.Limiter) sms.Service

Types

type RatelimitSMSService

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

func (*RatelimitSMSService) Send

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

type RatelimitSMSServiceV1

type RatelimitSMSServiceV1 struct {
	sms.Service
	// contains filtered or unexported fields
}

func (*RatelimitSMSServiceV1) Send

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

Jump to

Keyboard shortcuts

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