libsignal

package
v0.0.0-...-9e252af Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package libsignal is a generated protocol buffer package.

It is generated from these files:

signal.proto

It has these top-level messages:

Envelope
DataMessage

Index

Constants

This section is empty.

Variables

View Source
var DataMessage_Flags_name = map[int32]string{
	0: "UNKNOWN",
	1: "END_SESSION",
}
View Source
var DataMessage_Flags_value = map[string]int32{
	"UNKNOWN":     0,
	"END_SESSION": 1,
}
View Source
var Envelope_Type_name = map[int32]string{
	0: "UNKNOWN",
	1: "CIPHERTEXT",
	2: "KEY_EXCHANGE",
	3: "PREKEY_BUNDLE",
	5: "RECEIPT",
}
View Source
var Envelope_Type_value = map[string]int32{
	"UNKNOWN":       0,
	"CIPHERTEXT":    1,
	"KEY_EXCHANGE":  2,
	"PREKEY_BUNDLE": 3,
	"RECEIPT":       5,
}

Functions

This section is empty.

Types

type DataMessage

type DataMessage struct {
	Body      string `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"`
	SenderID  string `protobuf:"bytes,2,opt,name=senderID" json:"senderID,omitempty"`
	Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
	Flags     uint32 `protobuf:"varint,4,opt,name=flags" json:"flags,omitempty"`
}

func (*DataMessage) Descriptor

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

func (*DataMessage) ProtoMessage

func (*DataMessage) ProtoMessage()

func (*DataMessage) Reset

func (m *DataMessage) Reset()

func (*DataMessage) String

func (m *DataMessage) String() string

type DataMessage_Flags

type DataMessage_Flags int32
const (
	DataMessage_UNKNOWN     DataMessage_Flags = 0
	DataMessage_END_SESSION DataMessage_Flags = 1
)

func (DataMessage_Flags) EnumDescriptor

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

func (DataMessage_Flags) String

func (x DataMessage_Flags) String() string

type Envelope

type Envelope struct {
	Type        Envelope_Type `protobuf:"varint,1,opt,name=type,enum=libsignal.Envelope_Type" json:"type,omitempty"`
	DataMessage []byte        `protobuf:"bytes,2,opt,name=dataMessage,proto3" json:"dataMessage,omitempty"`
}

func (*Envelope) Descriptor

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

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) Reset

func (m *Envelope) Reset()

func (*Envelope) String

func (m *Envelope) String() string

type Envelope_Type

type Envelope_Type int32
const (
	Envelope_UNKNOWN       Envelope_Type = 0
	Envelope_CIPHERTEXT    Envelope_Type = 1
	Envelope_KEY_EXCHANGE  Envelope_Type = 2
	Envelope_PREKEY_BUNDLE Envelope_Type = 3
	Envelope_RECEIPT       Envelope_Type = 5
)

func (Envelope_Type) EnumDescriptor

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

func (Envelope_Type) String

func (x Envelope_Type) String() string

Jump to

Keyboard shortcuts

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