Documentation
¶
Index ¶
- Variables
- func NewChatEndpoints() []*api.Endpoint
- func RegisterChatHandler(s server.Server, hdlr ChatHandler, opts ...server.HandlerOption) error
- type ChatHandler
- type ChatService
- type Chat_JoinService
- type Chat_JoinStream
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetDescription() string
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetPrivate() bool
- func (x *CreateRequest) GetUserIds() []string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type HistoryRequest
- type HistoryResponse
- type InviteRequest
- func (*InviteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InviteRequest) GetRoomId() string
- func (x *InviteRequest) GetUserId() string
- func (*InviteRequest) ProtoMessage()
- func (x *InviteRequest) ProtoReflect() protoreflect.Message
- func (x *InviteRequest) Reset()
- func (x *InviteRequest) String() string
- type InviteResponse
- type JoinRequest
- func (*JoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRequest) GetRoomId() string
- func (x *JoinRequest) GetUserId() string
- func (*JoinRequest) ProtoMessage()
- func (x *JoinRequest) ProtoReflect() protoreflect.Message
- func (x *JoinRequest) Reset()
- func (x *JoinRequest) String() string
- type JoinResponse
- type KickRequest
- func (*KickRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KickRequest) GetRoomId() string
- func (x *KickRequest) GetUserId() string
- func (*KickRequest) ProtoMessage()
- func (x *KickRequest) ProtoReflect() protoreflect.Message
- func (x *KickRequest) Reset()
- func (x *KickRequest) String() string
- type KickResponse
- type LeaveRequest
- func (*LeaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveRequest) GetRoomId() string
- func (x *LeaveRequest) GetUserId() string
- func (*LeaveRequest) ProtoMessage()
- func (x *LeaveRequest) ProtoReflect() protoreflect.Message
- func (x *LeaveRequest) Reset()
- func (x *LeaveRequest) String() string
- type LeaveResponse
- type ListRequest
- type ListResponse
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetClient() string
- func (x *Message) GetId() string
- func (x *Message) GetRoomId() string
- func (x *Message) GetSentAt() string
- func (x *Message) GetSubject() string
- func (x *Message) GetText() string
- func (x *Message) GetUserId() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Room
- func (*Room) Descriptor() ([]byte, []int)deprecated
- func (x *Room) GetCreatedAt() string
- func (x *Room) GetDescription() string
- func (x *Room) GetId() string
- func (x *Room) GetName() string
- func (x *Room) GetPrivate() bool
- func (x *Room) GetUserIds() []string
- func (*Room) ProtoMessage()
- func (x *Room) ProtoReflect() protoreflect.Message
- func (x *Room) Reset()
- func (x *Room) String() string
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetClient() string
- func (x *SendRequest) GetRoomId() string
- func (x *SendRequest) GetSubject() string
- func (x *SendRequest) GetText() string
- func (x *SendRequest) GetUserId() string
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- type SendResponse
Constants ¶
This section is empty.
Variables ¶
var File_proto_chat_proto protoreflect.FileDescriptor
Functions ¶
func NewChatEndpoints ¶
func RegisterChatHandler ¶
func RegisterChatHandler(s server.Server, hdlr ChatHandler, opts ...server.HandlerOption) error
Types ¶
type ChatHandler ¶
type ChatHandler interface {
Create(context.Context, *CreateRequest, *CreateResponse) error
History(context.Context, *HistoryRequest, *HistoryResponse) error
Send(context.Context, *SendRequest, *SendResponse) error
List(context.Context, *ListRequest, *ListResponse) error
Delete(context.Context, *DeleteRequest, *DeleteResponse) error
Join(context.Context, *JoinRequest, Chat_JoinStream) error
Invite(context.Context, *InviteRequest, *InviteResponse) error
Leave(context.Context, *LeaveRequest, *LeaveResponse) error
Kick(context.Context, *KickRequest, *KickResponse) error
}
type ChatService ¶
type ChatService interface {
Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error)
History(ctx context.Context, in *HistoryRequest, opts ...client.CallOption) (*HistoryResponse, error)
Send(ctx context.Context, in *SendRequest, opts ...client.CallOption) (*SendResponse, error)
List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)
Join(ctx context.Context, in *JoinRequest, opts ...client.CallOption) (Chat_JoinService, error)
Invite(ctx context.Context, in *InviteRequest, opts ...client.CallOption) (*InviteResponse, error)
Leave(ctx context.Context, in *LeaveRequest, opts ...client.CallOption) (*LeaveResponse, error)
Kick(ctx context.Context, in *KickRequest, opts ...client.CallOption) (*KickResponse, error)
}
func NewChatService ¶
func NewChatService(name string, c client.Client) ChatService
type Chat_JoinService ¶
type Chat_JoinStream ¶
type CreateRequest ¶
type CreateRequest struct {
// name of the room
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// chat description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// optional list of user ids
UserIds []string `protobuf:"bytes,3,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// whether its a private room
Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"`
// contains filtered or unexported fields
}
Create a new chat room
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetDescription ¶
func (x *CreateRequest) GetDescription() string
func (*CreateRequest) GetName ¶
func (x *CreateRequest) GetName() string
func (*CreateRequest) GetPrivate ¶
func (x *CreateRequest) GetPrivate() bool
func (*CreateRequest) GetUserIds ¶
func (x *CreateRequest) GetUserIds() []string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct {
// the unique chat room
Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
// contains filtered or unexported fields
}
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetRoom ¶
func (x *CreateResponse) GetRoom() *Room
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct {
// the chat room id to delete
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// contains filtered or unexported fields
}
Delete a chat room
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetRoomId ¶
func (x *DeleteRequest) GetRoomId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetRoom ¶
func (x *DeleteResponse) GetRoom() *Room
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type HistoryRequest ¶
type HistoryRequest struct {
// the chat room id to get
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// contains filtered or unexported fields
}
List the messages in a chat
func (*HistoryRequest) Descriptor
deprecated
func (*HistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use HistoryRequest.ProtoReflect.Descriptor instead.
func (*HistoryRequest) GetRoomId ¶
func (x *HistoryRequest) GetRoomId() string
func (*HistoryRequest) ProtoMessage ¶
func (*HistoryRequest) ProtoMessage()
func (*HistoryRequest) ProtoReflect ¶
func (x *HistoryRequest) ProtoReflect() protoreflect.Message
func (*HistoryRequest) Reset ¶
func (x *HistoryRequest) Reset()
func (*HistoryRequest) String ¶
func (x *HistoryRequest) String() string
type HistoryResponse ¶
type HistoryResponse struct {
// messages in the chat room
Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// contains filtered or unexported fields
}
HistoryResponse contains the historical messages in a chat
func (*HistoryResponse) Descriptor
deprecated
func (*HistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use HistoryResponse.ProtoReflect.Descriptor instead.
func (*HistoryResponse) GetMessages ¶
func (x *HistoryResponse) GetMessages() []*Message
func (*HistoryResponse) ProtoMessage ¶
func (*HistoryResponse) ProtoMessage()
func (*HistoryResponse) ProtoReflect ¶
func (x *HistoryResponse) ProtoReflect() protoreflect.Message
func (*HistoryResponse) Reset ¶
func (x *HistoryResponse) Reset()
func (*HistoryResponse) String ¶
func (x *HistoryResponse) String() string
type InviteRequest ¶
type InviteRequest struct {
// the room id
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// the user id
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
Invite a user to a chat room
func (*InviteRequest) Descriptor
deprecated
func (*InviteRequest) Descriptor() ([]byte, []int)
Deprecated: Use InviteRequest.ProtoReflect.Descriptor instead.
func (*InviteRequest) GetRoomId ¶
func (x *InviteRequest) GetRoomId() string
func (*InviteRequest) GetUserId ¶
func (x *InviteRequest) GetUserId() string
func (*InviteRequest) ProtoMessage ¶
func (*InviteRequest) ProtoMessage()
func (*InviteRequest) ProtoReflect ¶
func (x *InviteRequest) ProtoReflect() protoreflect.Message
func (*InviteRequest) Reset ¶
func (x *InviteRequest) Reset()
func (*InviteRequest) String ¶
func (x *InviteRequest) String() string
type InviteResponse ¶
type InviteResponse struct {
Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
// contains filtered or unexported fields
}
func (*InviteResponse) Descriptor
deprecated
func (*InviteResponse) Descriptor() ([]byte, []int)
Deprecated: Use InviteResponse.ProtoReflect.Descriptor instead.
func (*InviteResponse) GetRoom ¶
func (x *InviteResponse) GetRoom() *Room
func (*InviteResponse) ProtoMessage ¶
func (*InviteResponse) ProtoMessage()
func (*InviteResponse) ProtoReflect ¶
func (x *InviteResponse) ProtoReflect() protoreflect.Message
func (*InviteResponse) Reset ¶
func (x *InviteResponse) Reset()
func (*InviteResponse) String ¶
func (x *InviteResponse) String() string
type JoinRequest ¶
type JoinRequest struct {
// chat room to join
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// user id joining
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
Join a chat room
func (*JoinRequest) Descriptor
deprecated
func (*JoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.
func (*JoinRequest) GetRoomId ¶
func (x *JoinRequest) GetRoomId() string
func (*JoinRequest) GetUserId ¶
func (x *JoinRequest) GetUserId() string
func (*JoinRequest) ProtoMessage ¶
func (*JoinRequest) ProtoMessage()
func (*JoinRequest) ProtoReflect ¶
func (x *JoinRequest) ProtoReflect() protoreflect.Message
func (*JoinRequest) Reset ¶
func (x *JoinRequest) Reset()
func (*JoinRequest) String ¶
func (x *JoinRequest) String() string
type JoinResponse ¶
type JoinResponse struct {
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*JoinResponse) Descriptor
deprecated
func (*JoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.
func (*JoinResponse) GetMessage ¶
func (x *JoinResponse) GetMessage() *Message
func (*JoinResponse) ProtoMessage ¶
func (*JoinResponse) ProtoMessage()
func (*JoinResponse) ProtoReflect ¶
func (x *JoinResponse) ProtoReflect() protoreflect.Message
func (*JoinResponse) Reset ¶
func (x *JoinResponse) Reset()
func (*JoinResponse) String ¶
func (x *JoinResponse) String() string
type KickRequest ¶
type KickRequest struct {
// the chat room id
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// the user id
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
Kick a user from a chat room
func (*KickRequest) Descriptor
deprecated
func (*KickRequest) Descriptor() ([]byte, []int)
Deprecated: Use KickRequest.ProtoReflect.Descriptor instead.
func (*KickRequest) GetRoomId ¶
func (x *KickRequest) GetRoomId() string
func (*KickRequest) GetUserId ¶
func (x *KickRequest) GetUserId() string
func (*KickRequest) ProtoMessage ¶
func (*KickRequest) ProtoMessage()
func (*KickRequest) ProtoReflect ¶
func (x *KickRequest) ProtoReflect() protoreflect.Message
func (*KickRequest) Reset ¶
func (x *KickRequest) Reset()
func (*KickRequest) String ¶
func (x *KickRequest) String() string
type KickResponse ¶
type KickResponse struct {
Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
// contains filtered or unexported fields
}
func (*KickResponse) Descriptor
deprecated
func (*KickResponse) Descriptor() ([]byte, []int)
Deprecated: Use KickResponse.ProtoReflect.Descriptor instead.
func (*KickResponse) GetRoom ¶
func (x *KickResponse) GetRoom() *Room
func (*KickResponse) ProtoMessage ¶
func (*KickResponse) ProtoMessage()
func (*KickResponse) ProtoReflect ¶
func (x *KickResponse) ProtoReflect() protoreflect.Message
func (*KickResponse) Reset ¶
func (x *KickResponse) Reset()
func (*KickResponse) String ¶
func (x *KickResponse) String() string
type LeaveRequest ¶
type LeaveRequest struct {
// the chat room id
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// the user id
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
Leave a chat room
func (*LeaveRequest) Descriptor
deprecated
func (*LeaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveRequest.ProtoReflect.Descriptor instead.
func (*LeaveRequest) GetRoomId ¶
func (x *LeaveRequest) GetRoomId() string
func (*LeaveRequest) GetUserId ¶
func (x *LeaveRequest) GetUserId() string
func (*LeaveRequest) ProtoMessage ¶
func (*LeaveRequest) ProtoMessage()
func (*LeaveRequest) ProtoReflect ¶
func (x *LeaveRequest) ProtoReflect() protoreflect.Message
func (*LeaveRequest) Reset ¶
func (x *LeaveRequest) Reset()
func (*LeaveRequest) String ¶
func (x *LeaveRequest) String() string
type LeaveResponse ¶
type LeaveResponse struct {
Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"`
// contains filtered or unexported fields
}
func (*LeaveResponse) Descriptor
deprecated
func (*LeaveResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeaveResponse.ProtoReflect.Descriptor instead.
func (*LeaveResponse) GetRoom ¶
func (x *LeaveResponse) GetRoom() *Room
func (*LeaveResponse) ProtoMessage ¶
func (*LeaveResponse) ProtoMessage()
func (*LeaveResponse) ProtoReflect ¶
func (x *LeaveResponse) ProtoReflect() protoreflect.Message
func (*LeaveResponse) Reset ¶
func (x *LeaveResponse) Reset()
func (*LeaveResponse) String ¶
func (x *LeaveResponse) String() string
type ListRequest ¶
type ListRequest struct {
// optional user id to filter by
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
List available chats
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetUserId ¶
func (x *ListRequest) GetUserId() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct {
Rooms []*Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"`
// contains filtered or unexported fields
}
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetRooms ¶
func (x *ListResponse) GetRooms() []*Room
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type Message ¶
type Message struct {
// id of the message, allocated by the server
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// a client side id, should be validated by the server to make the request retry safe
Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
// id of the chat the message is being sent to / from
RoomId string `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// id of the user who sent the message
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// time the message was sent in RFC3339 format
SentAt string `protobuf:"bytes,5,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
// subject of the message
Subject string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
// text of the message
Text string `protobuf:"bytes,7,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
Message sent to a chat
func (*Message) Descriptor
deprecated
func (*Message) GetSubject ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Room ¶
type Room struct {
// unique room id
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// name of the chat
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// description of the that
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// time of creation
CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// list of users
UserIds []string `protobuf:"bytes,5,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// whether its a private room
Private bool `protobuf:"varint,6,opt,name=private,proto3" json:"private,omitempty"`
// contains filtered or unexported fields
}
func (*Room) Descriptor
deprecated
func (*Room) GetCreatedAt ¶
func (*Room) GetDescription ¶
func (*Room) GetPrivate ¶
func (*Room) GetUserIds ¶
func (*Room) ProtoMessage ¶
func (*Room) ProtoMessage()
func (*Room) ProtoReflect ¶
func (x *Room) ProtoReflect() protoreflect.Message
type SendRequest ¶
type SendRequest struct {
// a client side id, should be validated by the server to make the request retry safe
Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
// id of the chat room the message is being sent to / from
RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
// id of the user who sent the message
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// subject of the message
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
// text of the message
Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
Connect to a chat to receive a stream of messages Send a message to a chat
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetClient ¶
func (x *SendRequest) GetClient() string
func (*SendRequest) GetRoomId ¶
func (x *SendRequest) GetRoomId() string
func (*SendRequest) GetSubject ¶
func (x *SendRequest) GetSubject() string
func (*SendRequest) GetText ¶
func (x *SendRequest) GetText() string
func (*SendRequest) GetUserId ¶
func (x *SendRequest) GetUserId() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
type SendResponse ¶
type SendResponse struct {
// the message which was created
Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetMessage ¶
func (x *SendResponse) GetMessage() *Message
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string