payloads

package
Version: v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PayloadType_name = map[int32]string{
	0: "BINARY",
	1: "TEXT",
	2: "ACK",
	3: "SESSION",
}
View Source
var PayloadType_value = map[string]int32{
	"BINARY":  0,
	"TEXT":    1,
	"ACK":     2,
	"SESSION": 3,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Encrypted            bool     `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	Nonce                []byte   `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	EncryptedKey         []byte   `protobuf:"bytes,4,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetEncrypted

func (m *Message) GetEncrypted() bool

func (*Message) GetEncryptedKey

func (m *Message) GetEncryptedKey() []byte

func (*Message) GetNonce

func (m *Message) GetNonce() []byte

func (*Message) GetPayload

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (dst *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Payload

type Payload struct {
	Type                 PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=payloads.PayloadType" json:"type,omitempty"`
	MessageId            []byte      `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	Data                 []byte      `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	ReplyToId            []byte      `protobuf:"bytes,4,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"`
	NoReply              bool        `protobuf:"varint,5,opt,name=no_reply,json=noReply,proto3" json:"no_reply,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Payload) Descriptor

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

func (*Payload) GetData

func (m *Payload) GetData() []byte

func (*Payload) GetMessageId

func (m *Payload) GetMessageId() []byte

func (*Payload) GetNoReply

func (m *Payload) GetNoReply() bool

func (*Payload) GetReplyToId

func (m *Payload) GetReplyToId() []byte

func (*Payload) GetType

func (m *Payload) GetType() PayloadType

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) String

func (m *Payload) String() string

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge

func (dst *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

func (m *Payload) XXX_Unmarshal(b []byte) error

type PayloadType

type PayloadType int32
const (
	PayloadType_BINARY  PayloadType = 0
	PayloadType_TEXT    PayloadType = 1
	PayloadType_ACK     PayloadType = 2
	PayloadType_SESSION PayloadType = 3
)

func (PayloadType) EnumDescriptor

func (PayloadType) EnumDescriptor() ([]byte, []int)

func (PayloadType) String

func (x PayloadType) String() string

type TextData

type TextData struct {
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TextData) Descriptor

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

func (*TextData) GetText

func (m *TextData) GetText() string

func (*TextData) ProtoMessage

func (*TextData) ProtoMessage()

func (*TextData) Reset

func (m *TextData) Reset()

func (*TextData) String

func (m *TextData) String() string

func (*TextData) XXX_DiscardUnknown

func (m *TextData) XXX_DiscardUnknown()

func (*TextData) XXX_Marshal

func (m *TextData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextData) XXX_Merge

func (dst *TextData) XXX_Merge(src proto.Message)

func (*TextData) XXX_Size

func (m *TextData) XXX_Size() int

func (*TextData) XXX_Unmarshal

func (m *TextData) XXX_Unmarshal(b []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto