pb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CHAT_TYPES_name = map[int32]string{
		0: "Private",
		1: "Group",
	}
	CHAT_TYPES_value = map[string]int32{
		"Private": 0,
		"Group":   1,
	}
)

Enum value maps for CHAT_TYPES.

Functions

This section is empty.

Types

type CHAT_TYPES added in v0.3.0

type CHAT_TYPES int32
const (
	CHAT_TYPES_Private CHAT_TYPES = 0
	CHAT_TYPES_Group   CHAT_TYPES = 1
)

func (CHAT_TYPES) Descriptor added in v0.3.0

func (CHAT_TYPES) Descriptor() protoreflect.EnumDescriptor

func (CHAT_TYPES) Enum added in v0.3.0

func (x CHAT_TYPES) Enum() *CHAT_TYPES

func (CHAT_TYPES) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use CHAT_TYPES.Descriptor instead.

func (CHAT_TYPES) Number added in v0.3.0

func (x CHAT_TYPES) Number() protoreflect.EnumNumber

func (CHAT_TYPES) String added in v0.3.0

func (x CHAT_TYPES) String() string

func (CHAT_TYPES) Type added in v0.3.0

type Contact

type Contact struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Contact) Descriptor deprecated

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

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetId

func (x *Contact) GetId() string

func (*Contact) GetName

func (x *Contact) GetName() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

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

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) String

func (x *Contact) String() string

type Message

type Message struct {
	Author    *Contact   `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
	Id        string     `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt int64      `protobuf:"varint,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Type      string     `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Sig       string     `protobuf:"bytes,6,opt,name=sig,proto3" json:"sig,omitempty"`
	ChatId    string     `protobuf:"bytes,7,opt,name=chatId,proto3" json:"chatId,omitempty"`
	Text      string     `protobuf:"bytes,8,opt,name=text,proto3" json:"text,omitempty"`
	ChatType  CHAT_TYPES `protobuf:"varint,9,opt,name=chatType,proto3,enum=CHAT_TYPES" json:"chatType,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAuthor

func (x *Message) GetAuthor() *Contact

func (*Message) GetChatId

func (x *Message) GetChatId() string

func (*Message) GetChatType added in v0.3.0

func (x *Message) GetChatType() CHAT_TYPES

func (*Message) GetCreatedAt

func (x *Message) GetCreatedAt() int64

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetSig

func (x *Message) GetSig() string

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) GetType

func (x *Message) GetType() 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 Request added in v0.3.0

type Request struct {
	ChatType CHAT_TYPES `protobuf:"varint,1,opt,name=chatType,proto3,enum=CHAT_TYPES" json:"chatType,omitempty"`
	Id       string     `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Members  []*Contact `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	Admins   []*Contact `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"`
	Name     string     `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated added in v0.3.0

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAdmins added in v0.3.0

func (x *Request) GetAdmins() []*Contact

func (*Request) GetChatType added in v0.3.0

func (x *Request) GetChatType() CHAT_TYPES

func (*Request) GetId added in v0.3.0

func (x *Request) GetId() string

func (*Request) GetMembers added in v0.3.0

func (x *Request) GetMembers() []*Contact

func (*Request) GetName added in v0.3.0

func (x *Request) GetName() string

func (*Request) ProtoMessage added in v0.3.0

func (*Request) ProtoMessage()

func (*Request) ProtoReflect added in v0.3.0

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

func (*Request) Reset added in v0.3.0

func (x *Request) Reset()

func (*Request) String added in v0.3.0

func (x *Request) String() string

Jump to

Keyboard shortcuts

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