gob

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultClient = Client{rpc.DefaultClient}
)

Functions

func CallRet

func CallRet(ctx Context, ret interface{}, resp *http.Response) (err error)

func Register

func Register(value interface{})

func RegisterName

func RegisterName(name string, value interface{})

func ResponseError

func ResponseError(resp *http.Response) (err error)

Types

type Client

type Client struct {
	rpc.Client
}

func (Client) Call

func (r Client) Call(
	ctx Context, ret interface{}, method, url1 string) (err error)

func (Client) CallWithGob

func (r Client) CallWithGob(
	ctx Context, ret interface{}, method, url1 string, params interface{}) (err error)

Jump to

Keyboard shortcuts

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