wmpb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	Uuid     string            `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	Payload  []byte            `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMetadata

func (x *Message) GetMetadata() map[string]string

func (*Message) GetPayload

func (x *Message) GetPayload() []byte

func (*Message) GetUuid

func (x *Message) GetUuid() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type NATSMarshaler added in v0.0.6

type NATSMarshaler struct{}

func (*NATSMarshaler) Marshal added in v0.0.6

func (*NATSMarshaler) Marshal(topic string, msg *message.Message) (*nats.Msg, error)

func (*NATSMarshaler) Unmarshal added in v0.0.6

func (*NATSMarshaler) Unmarshal(msg *nats.Msg) (*message.Message, error)

Jump to

Keyboard shortcuts

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