transport

package
v0.0.0-...-5dc8409 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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 Init

func Init()

Init intilize 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

Jump to

Keyboard shortcuts

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