transport

package
v0.0.0-...-a7a8f6c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	// Start start the transport
	Start() error
	// Stop stop the transport
	Stop() error
	// AsyncSend async send msg
	AsyncSend(string, meta.Notify, func(meta.Notify)) error
}

Transport transport

func NewTransport

func NewTransport(workers int,
	resourceAddrDetecter func(uint64, string) (meta.ResourceManager, error),
	rpcFunc func(meta.ResourceManager, meta.Notify) error) Transport

NewTransport create a transport based on http

Jump to

Keyboard shortcuts

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