httprpc

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

This section is empty.

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(endpoint string, rt http.RoundTripper, header http.Header) *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(h cborrpc.Handler) *CBORService

func (*CBORService) ServeHTTP

func (s *CBORService) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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