protobufs

package
v2.0.128 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 38

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