protobufs

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalProto

func MarshalProto(contentType int32, msg proto.Message) channel.Envelope

func MarshalTyped

func MarshalTyped(msg TypedMessage) channel.Envelope

Types

type TypedMessage

type TypedMessage interface {
	proto.Message
	GetContentType() int32
}

type TypedResponseImpl

type TypedResponseImpl struct {
	TypedMessage
}

func TypedResponse

func TypedResponse(message TypedMessage) TypedResponseImpl

func (TypedResponseImpl) Unmarshall

func (self TypedResponseImpl) Unmarshall(responseMsg *channel.Message, err error) error

Jump to

Keyboard shortcuts

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