calls

package
v0.0.0-...-d90b35b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(logger golog.Logger, cfg *config.Config,
	db *sqlx.DB) http.Server

NewServer creates a http.Server which handles twilio call requests

Types

type AudioClipsHandler

type AudioClipsHandler struct {
	// contains filtered or unexported fields
}

AudioClipsHandler is an http.Handler which sends audio files

func NewAudioClipsHandler

func NewAudioClipsHandler(logger golog.Logger) AudioClipsHandler

NewAudioClipsHandler creates an AudioClipsHandler

func (AudioClipsHandler) ServeHTTP

func (h AudioClipsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

type CallsHandler

type CallsHandler struct {
	// contains filtered or unexported fields
}

CallsHandler implements a http.Handler which responds to Twilio phone calls

func NewCallsHandler

func NewCallsHandler(logger golog.Logger, cfg *config.Config,
	db *sqlx.DB) CallsHandler

NewCallsHandler creates a new CallsHandler

func (CallsHandler) ServeHTTP

func (h CallsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles a Twilio phone call

type TestInputHandler

type TestInputHandler struct {
	// contains filtered or unexported fields
}

TestInputHandler is an http.Handler which receives digits provided by callers when they attempt to answer the challenge question

func NewTestInputHandler

func NewTestInputHandler(logger golog.Logger, cfg *config.Config,
	db *sqlx.DB) TestInputHandler

NewTestInputHandler creates a TestInputHandler

func (TestInputHandler) ServeHTTP

func (h TestInputHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

Jump to

Keyboard shortcuts

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