Documentation
¶
Index ¶
- Constants
- Variables
- func DeliveryModeValid(mode string) bool
- func ValidDeliveryModes() []string
- type Flags
- type Watch
- func (w *Watch) AddHandler(handler handler.MessageHandler)
- func (w *Watch) Handlers() []handler.MessageHandler
- func (w *Watch) Logger() *log.Logger
- func (w *Watch) Mailbox() string
- func (w *Watch) SetLogger(logger *log.Logger)
- func (w *Watch) SetMailbox(value string)
- func (w *Watch) Start()
- func (w *Watch) Stop()
- type Watcher
Constants ¶
View Source
const ( DELIVERY_MODE_POSTBACK = "postback" DELIVERY_MODE_LOGGER = "logger" )
Variables ¶
View Source
var ( DefaultLogger = log.New(os.Stdout, "[watch] ", log.LstdFlags) DELIVERY_MODES = map[string]bool{ DELIVERY_MODE_POSTBACK: true, DELIVERY_MODE_LOGGER: true} )
Functions ¶
func DeliveryModeValid ¶
func ValidDeliveryModes ¶
func ValidDeliveryModes() []string
Types ¶
type Flags ¶
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func (*Watch) AddHandler ¶
func (w *Watch) AddHandler(handler handler.MessageHandler)
func (*Watch) Handlers ¶
func (w *Watch) Handlers() []handler.MessageHandler
func (*Watch) SetMailbox ¶
Click to show internal directories.
Click to hide internal directories.