listen

package
v0.0.0-...-46dda04 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultListener = NewListener()
)

Functions

func AddKeywords

func AddKeywords(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func AddSymbols

func AddSymbols(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func Do

func Do(w http.ResponseWriter, r *http.Request, body interface{}) (err error)

func RemoveKeywords

func RemoveKeywords(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func RemoveSymbols

func RemoveSymbols(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Types

type Listener

type Listener struct {
	AddKeywordsChan    chan []*Keyword
	RemoveKeywordsChan chan []*Keyword
	AddSymbolsChan     chan []string
	RemoveSymbolsChan  chan []string
}

func NewListener

func NewListener() *Listener

func (*Listener) AddKeywords

func (this *Listener) AddKeywords() <-chan []*Keyword

func (*Listener) AddSymbols

func (this *Listener) AddSymbols() <-chan []string

func (*Listener) RemoveKeywords

func (this *Listener) RemoveKeywords() <-chan []*Keyword

func (*Listener) RemoveSymbols

func (this *Listener) RemoveSymbols() <-chan []string

type Response

type Response struct {
	Success bool
	Msg     string
	Result  *filter.Response `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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