transport

package
v0.0.0-...-0173b98 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpConfig

type HttpConfig map[string]string

func NewHttpConfig

func NewHttpConfig(serverPort int) HttpConfig

func NewHttpsConfig

func NewHttpsConfig(serverPort int, certFile, certKeyFile string) HttpConfig

type HttpTransport

type HttpTransport struct {

	// A mutex for synchronized access to the server instance
	sync.Mutex
	// contains filtered or unexported fields
}

func NewHttp

func NewHttp() *HttpTransport

func (*HttpTransport) Bind

func (t *HttpTransport) Bind(service string, endpoint string) (<-chan usrv.Message, error)

func (*HttpTransport) Close

func (t *HttpTransport) Close() error

func (*HttpTransport) Config

func (t *HttpTransport) Config(params map[string]string) error

func (*HttpTransport) MessageTo

func (t *HttpTransport) MessageTo(from string, toService string, toEndpoint string) usrv.Message

Create a message to be delivered to a target endpoint

func (*HttpTransport) ReplyTo

func (t *HttpTransport) ReplyTo(msg usrv.Message) usrv.Message

func (*HttpTransport) Send

func (t *HttpTransport) Send(m usrv.Message, timeout time.Duration, expectReply bool) <-chan usrv.Message

func (*HttpTransport) SetLogger

func (t *HttpTransport) SetLogger(logger usrv.Logger)

type InMemTransport

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

func NewInMemory

func NewInMemory() *InMemTransport

func (*InMemTransport) Bind

func (t *InMemTransport) Bind(service string, endpoint string) (<-chan usrv.Message, error)

func (*InMemTransport) Close

func (t *InMemTransport) Close() error

func (*InMemTransport) Config

func (t *InMemTransport) Config(params map[string]string) error

func (*InMemTransport) MessageTo

func (t *InMemTransport) MessageTo(from string, toService string, toEndpoint string) usrv.Message

Create a message to be delivered to a target endpoint

func (*InMemTransport) ReplyTo

func (t *InMemTransport) ReplyTo(msg usrv.Message) usrv.Message

func (*InMemTransport) Send

func (t *InMemTransport) Send(m usrv.Message, timeout time.Duration, expectReply bool) <-chan usrv.Message

func (*InMemTransport) SetLogger

func (t *InMemTransport) SetLogger(logger usrv.Logger)

Jump to

Keyboard shortcuts

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