Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TransportMap = make(map[string]microTransport.Transport)
TransportMap transport map
Functions ¶
func CreateTransport ¶
func CreateTransport(protocol string, opts ...microTransport.Option)
CreateTransport create transport function
func GetTransport ¶
func GetTransport(protocol string) microTransport.Transport
GetTransport get transport
func InstallPlugin ¶
func InstallPlugin(protocol string, newFunc TransortFunc)
InstallPlugin install plugin of transport
Types ¶
type TransortFunc ¶
type TransortFunc func(...microTransport.Option) microTransport.Transport
TransortFunc transport function
func GetTransportFunc ¶
func GetTransportFunc(protocol string) (TransortFunc, error)
GetTransportFunc get transport function
Click to show internal directories.
Click to hide internal directories.