testpb

package
v0.3.35 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	// chatID - The globally unique identifier of the message, in a format similar to userid:msgid
	ChatID string `protobuf:"bytes,1,opt,name=chatID,proto3" json:"chatID,omitempty"`
	// from - Message user
	From *User `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// to - User receiving the message
	To *User `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// text - Message text content
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	// timeStamp - Time of sending a message
	TimeStamp            int64    `protobuf:"varint,5,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Message - message

func (*Message) Descriptor

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

func (*Message) GetChatID

func (m *Message) GetChatID() string

func (*Message) GetFrom

func (m *Message) GetFrom() *User

func (*Message) GetText

func (m *Message) GetText() string

func (*Message) GetTimeStamp

func (m *Message) GetTimeStamp() int64

func (*Message) GetTo

func (m *Message) GetTo() *User

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 User

type User struct {
	// nickName - User's nickname
	NickName string `protobuf:"bytes,1,opt,name=nickName,proto3" json:"nickName,omitempty"`
	// userID - User's unique identifier
	UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	// userName - Username
	UserName             string   `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

User - chat user info

func (*User) Descriptor

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

func (*User) GetNickName

func (m *User) GetNickName() string

func (*User) GetUserID

func (m *User) GetUserID() string

func (*User) GetUserName

func (m *User) GetUserName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UserList

type UserList struct {
	// users - user list
	Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserList - user list

func (*UserList) Descriptor

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

func (*UserList) GetUsers

func (m *UserList) GetUsers() []*User

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) Reset

func (m *UserList) Reset()

func (*UserList) String

func (m *UserList) String() string

func (*UserList) XXX_DiscardUnknown

func (m *UserList) XXX_DiscardUnknown()

func (*UserList) XXX_Marshal

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

func (*UserList) XXX_Merge

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

func (*UserList) XXX_Size

func (m *UserList) XXX_Size() int

func (*UserList) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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