jsonrpc

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 10 Imported by: 0

README

JSON-RPC Module for Helium

Codecov Build Status Report GitHub release GitHub

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	{Constructor: NewRPC},
}

Module for helium json-rpc

Functions

This section is empty.

Types

type CompressionSelector added in v1.2.0

type CompressionSelector = codec.CompressionSelector

CompressionSelector alias

type RPC added in v1.2.0

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

RPC server struct

func NewRPC added in v1.2.0

func NewRPC() *RPC

NewRPC create new server instance

func (*RPC) AddCodec added in v1.2.0

func (s *RPC) AddCodec(codec codec.Interface, mime string)

AddCodec register codec

func (*RPC) AddMethod added in v1.2.0

func (s *RPC) AddMethod(name string, fn interface{}) error

AddMethod register method func(r *http.Request, args interface{}, reply *Reply) error

func (*RPC) ServeHTTP added in v1.2.0

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

ServeHTTP implementation of http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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