sms

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func PhoneKey

func PhoneKey(req coresms.Request) string

func Use

func Use(opts ...UseOption) runtime.Capability

Types

type Config

type Config = coresms.Config

type ConfigLoader

type ConfigLoader func(app *runtime.App) (Config, error)

type Manager

type Manager = coresms.Manager

func From

func From(app *runtime.App) *Manager

func FromDefault

func FromDefault() (*Manager, error)

type Message

type Message = coresms.Message

type Middleware

type Middleware = coresms.Middleware

func RateLimitMiddleware

func RateLimitMiddleware(limiter RateLimiter, rule RateLimitRule) Middleware

type Param

type Param = coresms.Param

type Payload added in v0.1.4

type Payload = coresms.Payload

func ResolvePayload added in v0.1.4

func ResolvePayload(provider string, payloads map[string]Payload) (Payload, error)

type ProviderConfig

type ProviderConfig = coresms.ProviderConfig

type RateLimitRule

type RateLimitRule = coresms.RateLimitRule

type RateLimiter

type RateLimiter = coresms.RateLimiter

type SendResult

type SendResult = coresms.SendResult

type TemplateMessage

type TemplateMessage = coresms.TemplateMessage

type UseOption

type UseOption func(*useOptions)

func WithConfig

func WithConfig(cfg Config) UseOption

func WithConfigLoader

func WithConfigLoader(loader ConfigLoader) UseOption

func WithDependencies

func WithDependencies(deps ...runtime.Dependency) UseOption

func WithExternal added in v0.1.4

func WithExternal() UseOption

func WithInternal

func WithInternal() UseOption

func WithManager

func WithManager(manager *Manager) UseOption

func WithMiddleware

func WithMiddleware(middleware ...Middleware) UseOption

func WithOptional

func WithOptional() UseOption

Jump to

Keyboard shortcuts

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