app

package
v0.0.0-...-25888e7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(cfg *Config, mg *mailgun.Client) *mux.Router

func ServeFD

func ServeFD(handle http.Handler) error

func ServeTCP

func ServeTCP(handle http.Handler, port string)

Types

type Config

type Config struct {
	Subscribegun struct {
		Listen string
		Lists  []string
	}
	Mailgun struct {
		Key string
	}
}

func GetConfigFromEnv

func GetConfigFromEnv(env []string) (*Config, error)

func (*Config) ListenPort

func (cfg *Config) ListenPort() string

type Handler

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

func NewHandler

func NewHandler(cfg *Config, mg *mailgun.Client) *Handler

Jump to

Keyboard shortcuts

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