dashboard

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: 9 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 new http.Server which serves an internal API and dashboard page

Types

type ChallengesHandler

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

ChallengesHandler is an http.Handler which returns all the challenges in the database

func NewChallengesHandler

func NewChallengesHandler(logger golog.Logger, db *sqlx.DB) ChallengesHandler

NewChallengesHandler creates a ChallengesHandler

func (ChallengesHandler) ServeHTTP

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

ServeHTTP implements the http.Handler

type PhoneCallsHandler

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

PhoneCallsHandler is an http.Handler which returns all the phone calls in the database

func NewPhoneCallsHandler

func NewPhoneCallsHandler(logger golog.Logger, db *sqlx.DB) PhoneCallsHandler

NewPhoneCallsHandler creates a PhoneCallsHandler

func (PhoneCallsHandler) ServeHTTP

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

ServeHTTP implements the http.Handler

type PhoneNumbersHandler

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

PhoneNumbersHandler is an http.Handler which returns all the phone numbers in the database

func NewPhoneNumbersHandler

func NewPhoneNumbersHandler(logger golog.Logger, db *sqlx.DB) PhoneNumbersHandler

NewPhoneNumbersHandler creates a PhoneNumbersHandler

func (PhoneNumbersHandler) ServeHTTP

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

ServeHTTP implements the http.Handler

Jump to

Keyboard shortcuts

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