dealers

package
Version: v0.0.0-...-309e9be Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDealer

type EventDealer struct {
	sync.RWMutex

	In chan parser.Event
	// contains filtered or unexported fields
}

EventDealer

func NewEventDealer

func NewEventDealer(bodyFormat format.BodyFormat) *EventDealer

NewEventDealer

func (*EventDealer) Loop

func (e *EventDealer) Loop()

Loop

func (*EventDealer) OnEvent

func (e *EventDealer) OnEvent(uri string, handler api.EventHandler)

OnEvent

type RequestDealer

type RequestDealer struct {
	sync.RWMutex

	In chan parser.Request
	// contains filtered or unexported fields
}

RequestDealer

func NewRequestDealer

func NewRequestDealer(bodyFormat format.BodyFormat, out chan parser.Frame) *RequestDealer

NewRequestDealer

func (*RequestDealer) Loop

func (p *RequestDealer) Loop()

Loop()

func (*RequestDealer) OnRequest

func (p *RequestDealer) OnRequest(uri string, handler api.RequestHandler) error

OnRequest

type ResponseDealer

type ResponseDealer struct {
	sync.RWMutex

	In chan parser.Response
	// contains filtered or unexported fields
}

ResponseDealer

func NewResponseDealer

func NewResponseDealer(bodyFormat format.BodyFormat) *ResponseDealer

NewResponseDealer

func (*ResponseDealer) Loop

func (p *ResponseDealer) Loop()

Loop

func (*ResponseDealer) OnResponse

func (p *ResponseDealer) OnResponse(uid uuid.UUID, handler api.ResponseHandler) error

OnResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL