ussd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUSSDIncomlete = errors.New("ussd answer not ready") // ussd request in progress
	ErrUSSDNotFound  = errors.New("ussd answer not found") // ussd unique key not found
	ErrUSSDFailed    = errors.New("ussd request failed")   // ussd request failed
)

Functions

func ParseUSSD

func ParseUSSD(line int, body, smskey string) (string, error)

ParseUSSD - parse ussd response body

line - gateway line number
body - response body (xml)
smskey - unique ussd shoet uuid key

Types

This section is empty.

Jump to

Keyboard shortcuts

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