handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// crude impression prevention
	BanFrom = []string{
		"Amazon",
		"Google",
		"Paypal",
		"Facebook",
		"Microsoft",
		"Twilio",
		"Stripe",
		"Apple",
		"Uber",
		"Deliveroo",
	}

	// ban certain words
	BanWords = []string{
		"cannabis",
		"canabis",
		"drugs",
		"paypal",
		"bank",
		"crypto",
		"loan",
		"debt",
		"cbd",
		"gambling",
		"casino",
		"sex",
		"hate",
		"fuck",
		"alcohol",
		"tobacco",
		"smoke",
		"gun",
		"marijuana",
	}
)

Functions

This section is empty.

Types

type Sent

type Sent struct {
	UserID      string
	TwilioMsgID string
	Timestamp   time.Time
}

type Sms

type Sms struct{}

func (*Sms) Send

func (e *Sms) Send(ctx context.Context, req *pb.SendRequest, rsp *pb.SendResponse) error

Jump to

Keyboard shortcuts

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