mrpc

package module
v0.0.0-...-e804f6b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 15 Imported by: 0

README

MRPC

grpc over mqtt, for IOT, edge.

Documentation

Index

Constants

View Source
const (
	DefaultRequestPrefix  = "/mrpc/request"
	DefaultResponsePrefix = "/mrpc/response"
)

Variables

View Source
var EOF = []byte{0}
View Source
var MessageIDs = sync.Pool{New: func() interface{} {
	return "/" + strconv.FormatUint(rand.Uint64(), 10)
}}

Functions

func NewBridge

func NewBridge(clt mqtt.Client, target string) grpc.StreamServerInterceptor

func WaitContext

func WaitContext(ctx context.Context, token mqtt.Token) bool

Types

type MethodDesc

type MethodDesc = grpc.MethodDesc

type MethodInfo

type MethodInfo = grpc.MethodInfo

type OriginalProto

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

func (*OriginalProto) Concat

func (orig *OriginalProto) Concat(subs ...*OriginalProto) *OriginalProto

Concat NOT change itself

func (OriginalProto) Marshal

func (orig OriginalProto) Marshal() ([]byte, error)

func (*OriginalProto) ProtoMessage

func (orig *OriginalProto) ProtoMessage()

func (*OriginalProto) Reset

func (orig *OriginalProto) Reset()

func (*OriginalProto) String

func (orig *OriginalProto) String() string

func (*OriginalProto) Unmarshal

func (orig *OriginalProto) Unmarshal(byt []byte) error

type ServiceDesc

type ServiceDesc = grpc.ServiceDesc

type ServiceInfo

type ServiceInfo = grpc.ServiceInfo

type StreamDesc

type StreamDesc = grpc.StreamDesc

Jump to

Keyboard shortcuts

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