ivr

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NilCallID = CallID("")
)

Variables

This section is empty.

Functions

func RegisterClientType

func RegisterClientType(channelType models.ChannelType, constructor ClientConstructor)

RegisterClientType registers the passed in channel type with the passed in constructor

func RequestCallStart

func RequestCallStart(ctx context.Context, config *config.Config, db *sqlx.DB, org *models.OrgAssets, start *models.FlowStart, c *models.Contact) (*models.ChannelSession, error)

RequestCallStart creates a new ChannelSession for the passed in flow start and contact, returning the created session

Types

type CallID

type CallID string

type ClientConstructor

type ClientConstructor func(c *models.Channel) (IVRClient, error)

ClientConstructor defines our signature for creating a new IVR client from a channel

type IVRClient

type IVRClient interface {
	RequestCall(c *models.Channel, number urns.URN, callbackURL string, statusURL string) (CallID, error)
}

IVRClient defines the interface IVR clients must satisfy

func GetClient

func GetClient(channel *models.Channel) (IVRClient, error)

GetClient creates the right kind of IVRClient for the passed in channel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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