Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTransports ¶
func GetTransports() []string
func RegisterTransportDriver ¶
func RegisterTransportDriver(name string, t TransportDriver)
Types ¶
type TransportDriver ¶
type TransportDriver interface { Prepare() error // Prepare driver (eg: flag registration) Init(context.Context) error // Initialize driver (eg: start connections, open files...) Close(context.Context) 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.