rpc

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package rpc is a vine rpc handler.

Index

Constants

View Source
const (
	Handler = "rpc"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts ...handler.Option) handler.Handler

func WithService

func WithService(s *api.Service, opts ...handler.Option) handler.Handler

Types

type Message

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

func NewMessage

func NewMessage(data []byte) *Message

func (*Message) Marshal

func (m *Message) Marshal() ([]byte, error)

func (*Message) ProtoMessage

func (m *Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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