callback

package
v0.0.0-...-5628fe7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicatedCallback = errors.New("duplicated callback")
	ErrCallbackNotFound   = errors.New("callback not found")
)

Functions

func Register

func Register(name Name, callback Callback) error

Register callback with given name

Types

type Callback

type Callback func(status *m.DeliveryStatus, history *m.SMSHistory) error

func Lookup

func Lookup(name Name) (Callback, error)

Lookup return the callback for given name

type Name

type Name string

Jump to

Keyboard shortcuts

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