rpc

package
v0.0.0-...-aadf7d6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package rpc provides a network agnostic RPC client

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultContentType = "application/json"

	DefaultCodecs = map[string]codec.NewCodec{
		"application/json":         json.NewCodec,
		"application/json-rpc":     jsonrpc.NewCodec,
		"application/octet-stream": raw.NewCodec,
	}
)

Functions

func NewClient

func NewClient(opt ...client.Option) client.Client

NewClient returns a new micro client interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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