rpc

package
v0.18.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT 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 *apipb.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

type RawMessage

type RawMessage json.RawMessage

func (RawMessage) MarshalJSON

func (m RawMessage) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawMessage) UnmarshalJSON

func (m *RawMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

Jump to

Keyboard shortcuts

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