rpcutil

package
v0.0.0-...-3056823 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(conn net.Conn, reqID uint64, request *pdpb.Request) (*pdpb.Response, error)

Call sends the request to conn and wait for the response.

func ConnectUrls

func ConnectUrls(urls string, timeout time.Duration) (net.Conn, error)

ConnectUrls returns a rpc connection to any one of the urls.

func ParseUrls

func ParseUrls(s string) ([]url.URL, error)

ParseUrls parses a string into multiple urls.

func Request

func Request(urls string, reqID uint64, request *pdpb.Request) (*pdpb.Response, error)

Request connects to urls, then sends the request and wait for the response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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