Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorTransport = fmt.Errorf("transport error")
)
Functions ¶
func GetTransports ¶
func GetTransports() []string
func RegisterTransportDriver ¶
func RegisterTransportDriver(name string, t TransportDriver)
Types ¶
type DriverTransportError ¶
func (*DriverTransportError) Error ¶
func (e *DriverTransportError) Error() string
func (*DriverTransportError) Unwrap ¶
func (e *DriverTransportError) Unwrap() []error
type TransportDriver ¶
type TransportDriver interface { Name() string // Get the name of the driver Prepare() error // Prepare driver (eg: flag registration) Init() error // Initialize driver (eg: start connections, open files...) Close() error // Close driver (eg: close connections and files...) Send(key, data []byte) error // Send a formatted message }
type TransportInterface ¶
Click to show internal directories.
Click to hide internal directories.