libp2prpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolID  protocol.ID = "/cborrpc/v1"
	ServiceName string      = "ldclabs:cborrpc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CBORClient

type CBORClient struct {
	// contains filtered or unexported fields
}

func NewCBORClient

func NewCBORClient(host host.Host, endpoint peer.ID) *CBORClient

func (*CBORClient) Do

func (*CBORClient) Request

func (c *CBORClient) Request(ctx context.Context, method string, params, result interface{}) *cborrpc.Response

type CBORService

type CBORService struct {
	// contains filtered or unexported fields
}

func NewCBORService

func NewCBORService(host host.Host, h cborrpc.Handler) *CBORService

Jump to

Keyboard shortcuts

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