failover

package
v0.0.0-...-0ca6d7b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailOverSMSService

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

func NewFailOverSMSService

func NewFailOverSMSService(svcs []sms.Service) *FailOverSMSService

func (*FailOverSMSService) Send

func (f *FailOverSMSService) Send(
	ctx context.Context,
	toNb string,
	body string,
	args ...string,
) error

func (*FailOverSMSService) SendV1

func (f *FailOverSMSService) SendV1(
	ctx context.Context,
	toNb string,
	body string,
	args ...string,
) error

Polling from the last position. Polling all services equally. Exclude user canceling and time out.

type TimeoutFailOverSMSService

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

func NewTimeoutFailOverSMSService

func NewTimeoutFailOverSMSService(svcs []sms.Service, threshold int32) *TimeoutFailOverSMSService

func (*TimeoutFailOverSMSService) Send

func (t *TimeoutFailOverSMSService) Send(
	ctx context.Context,
	toNb string,
	body string,
	args ...string,
) error

Jump to

Keyboard shortcuts

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