Documentation
¶
Index ¶
- Constants
- func PhoneKey(req coresms.Request) string
- func Use(opts ...UseOption) runtime.Capability
- type Config
- type ConfigLoader
- type Manager
- type Message
- type Middleware
- type Param
- type Payload
- type ProviderConfig
- type RateLimitRule
- type RateLimiter
- type SendResult
- type TemplateMessage
- type UseOption
- func WithConfig(cfg Config) UseOption
- func WithConfigLoader(loader ConfigLoader) UseOption
- func WithDependencies(deps ...runtime.Dependency) UseOption
- func WithExternal() UseOption
- func WithInternal() UseOption
- func WithManager(manager *Manager) UseOption
- func WithMiddleware(middleware ...Middleware) UseOption
- func WithOptional() UseOption
Constants ¶
View Source
const Name = string(coresms.KeySMS)
Variables ¶
This section is empty.
Functions ¶
func Use ¶
func Use(opts ...UseOption) runtime.Capability
Types ¶
type Manager ¶
func FromDefault ¶
type Middleware ¶
type Middleware = coresms.Middleware
func RateLimitMiddleware ¶
func RateLimitMiddleware(limiter RateLimiter, rule RateLimitRule) Middleware
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 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 WithMiddleware ¶
func WithMiddleware(middleware ...Middleware) UseOption
func WithOptional ¶
func WithOptional() UseOption
Click to show internal directories.
Click to hide internal directories.