smpp

package
v0.0.0-...-81dd437 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

SMPP Notifier

SMPP Notifier implements notifier for send SMS notifications.

Configuration

The Subscription service using SMPP Notifier is configured using the environment variables presented in the following table. Note that any unset variables will be replaced with their default values.

| Variable | Description | Default | | ------------------------------------| --------------------------------------------------------------- ----- | --------------------- | | MF_SMPP_NOTIFIER_LOG_LEVEL | Log level for SMPP Notifier (debug, info, warn, error) | error | | MF_JAEGER_URL | Jaeger server URL | localhost:6831 | | MF_BROKER_URL | Message broker URL | nats://127.0.0.1:4222 | | MF_SMPP_ADDRESS | SMPP address [host:port] | | | MF_SMPP_USERNAME | SMPP Username | | | MF_SMPP_PASSWORD | SMPP Password | | | MF_SMPP_SYSTEM_TYPE | SMPP System Type | | | MF_SMPP_SRC_ADDR_TON | SMPP source address TON | | | MF_SMPP_DST_ADDR_TON | SMPP destination address TON | | | MF_SMPP_SRC_ADDR_NPI | SMPP source address NPI | | | MF_SMPP_DST_ADDR_NPI | SMPP destination address NPI | | | MF_AUTH_GRPC_TIMEOUT | Auth service gRPC request timeout in seconds | 1s | | MF_AUTH_CLIENT_TLS | Auth client TLS flag | false | | MF_AUTH_CA_CERTS | Path to Auth client CA certs in pem format | |

Usage

Starting service will start consuming messages and sending SMS when a message is received.

Documentation

Overview

Package smpp contains the domain concept definitions needed to support Mainflux SMS notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) notifiers.Notifier

New instantiates SMTP message notifier.

Types

type Config

type Config struct {
	Address       string
	Username      string
	Password      string
	SystemType    string
	SourceAddrTON uint8
	SourceAddrNPI uint8
	DestAddrTON   uint8
	DestAddrNPI   uint8
	TLS           *tls.Config
}

Config represents SMPP transmitter configuration.

Jump to

Keyboard shortcuts

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