Documentation
¶
Index ¶
- type Conn
- type Transport
- func (t *Transport) ConnectBridgeTopic(topic string) (grav.TopicConnection, error)
- func (t *Transport) CreateConnection(endpoint string) (grav.Connection, error)
- func (t *Transport) Setup(opts *grav.TransportOpts, connFunc grav.ConnectFunc, findFunc grav.FindFunc) error
- func (t *Transport) Type() grav.TransportType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn implements transport.TopicConnection and represents a subscribe/send pair for a NATS topic
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a transport that connects Grav nodes via standard websockets
func (*Transport) ConnectBridgeTopic ¶
func (t *Transport) ConnectBridgeTopic(topic string) (grav.TopicConnection, error)
ConnectBridgeTopic connects to a topic if the transport is a bridge
func (*Transport) CreateConnection ¶
func (t *Transport) CreateConnection(endpoint string) (grav.Connection, error)
CreateConnection adds an endpoint to emit messages to
func (*Transport) Setup ¶
func (t *Transport) Setup(opts *grav.TransportOpts, connFunc grav.ConnectFunc, findFunc grav.FindFunc) error
Setup sets up the transport
func (*Transport) Type ¶
func (t *Transport) Type() grav.TransportType
Type returns the transport's type
Click to show internal directories.
Click to hide internal directories.