handler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	POSTBACK_HANDLER = 1 << iota
	LOGGER_HANDLER
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerHandler

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

func NewLoggerHandler

func NewLoggerHandler(out *log.Logger) *LoggerHandler

func (*LoggerHandler) Deliver

func (hnd *LoggerHandler) Deliver(message string) error

func (*LoggerHandler) Describe

func (hnd *LoggerHandler) Describe() string

type MessageHandler

type MessageHandler interface {
	Deliver(message string) error
	Describe() string
}

func New

func New(t uint, args ...interface{}) (hnd MessageHandler)

type PostBackHandler

type PostBackHandler struct {
	Url           string
	PostEncoded   bool
	PostParamName string
}

func NewPostBackHandler

func NewPostBackHandler(postUrl string, postEncoded bool, postParamName string) *PostBackHandler

func (*PostBackHandler) Deliver

func (hnd *PostBackHandler) Deliver(message string) error

func (*PostBackHandler) Describe

func (hnd *PostBackHandler) Describe() string

Jump to

Keyboard shortcuts

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