Documentation ¶
Index ¶
- Variables
- func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
- type ApiClient
- type ApiServer
- type Api_SubscribeToEventsClient
- type Api_SubscribeToEventsServer
- type ChatMessage
- func (*ChatMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMessage) GetSenderId() string
- func (x *ChatMessage) GetTimestamp() int64
- func (x *ChatMessage) GetValue() string
- func (*ChatMessage) ProtoMessage()
- func (x *ChatMessage) ProtoReflect() protoreflect.Message
- func (x *ChatMessage) Reset()
- func (x *ChatMessage) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetNewChatMessage() *EvtNewChatMessage
- func (x *Event) GetPeerJoined() *EvtPeerJoined
- func (x *Event) GetPeerLeft() *EvtPeerLeft
- func (x *Event) GetSetNickname() *EvtSetNickname
- func (x *Event) GetType() Event_Type
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_Type
- type EvtNewChatMessage
- func (*EvtNewChatMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EvtNewChatMessage) GetChatMessage() *ChatMessage
- func (x *EvtNewChatMessage) GetRoomName() string
- func (*EvtNewChatMessage) ProtoMessage()
- func (x *EvtNewChatMessage) ProtoReflect() protoreflect.Message
- func (x *EvtNewChatMessage) Reset()
- func (x *EvtNewChatMessage) String() string
- type EvtPeerJoined
- func (*EvtPeerJoined) Descriptor() ([]byte, []int)deprecated
- func (x *EvtPeerJoined) GetPeerId() string
- func (x *EvtPeerJoined) GetRoomName() string
- func (*EvtPeerJoined) ProtoMessage()
- func (x *EvtPeerJoined) ProtoReflect() protoreflect.Message
- func (x *EvtPeerJoined) Reset()
- func (x *EvtPeerJoined) String() string
- type EvtPeerLeft
- func (*EvtPeerLeft) Descriptor() ([]byte, []int)deprecated
- func (x *EvtPeerLeft) GetPeerId() string
- func (x *EvtPeerLeft) GetRoomName() string
- func (*EvtPeerLeft) ProtoMessage()
- func (x *EvtPeerLeft) ProtoReflect() protoreflect.Message
- func (x *EvtPeerLeft) Reset()
- func (x *EvtPeerLeft) String() string
- type EvtSetNickname
- func (*EvtSetNickname) Descriptor() ([]byte, []int)deprecated
- func (x *EvtSetNickname) GetNickname() string
- func (x *EvtSetNickname) GetPeerId() string
- func (x *EvtSetNickname) GetRoomName() string
- func (*EvtSetNickname) ProtoMessage()
- func (x *EvtSetNickname) ProtoReflect() protoreflect.Message
- func (x *EvtSetNickname) Reset()
- func (x *EvtSetNickname) String() string
- type GetNicknameRequest
- func (*GetNicknameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNicknameRequest) GetPeerId() string
- func (x *GetNicknameRequest) GetRoomName() string
- func (*GetNicknameRequest) ProtoMessage()
- func (x *GetNicknameRequest) ProtoReflect() protoreflect.Message
- func (x *GetNicknameRequest) Reset()
- func (x *GetNicknameRequest) String() string
- type GetNicknameResponse
- func (*GetNicknameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNicknameResponse) GetNickname() string
- func (*GetNicknameResponse) ProtoMessage()
- func (x *GetNicknameResponse) ProtoReflect() protoreflect.Message
- func (x *GetNicknameResponse) Reset()
- func (x *GetNicknameResponse) String() string
- type GetNodeIDRequest
- type GetNodeIDResponse
- type GetRoomParticipantsRequest
- func (*GetRoomParticipantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoomParticipantsRequest) GetRoomName() string
- func (*GetRoomParticipantsRequest) ProtoMessage()
- func (x *GetRoomParticipantsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoomParticipantsRequest) Reset()
- func (x *GetRoomParticipantsRequest) String() string
- type GetRoomParticipantsResponse
- func (*GetRoomParticipantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoomParticipantsResponse) GetParticipants() []*RoomParticipant
- func (*GetRoomParticipantsResponse) ProtoMessage()
- func (x *GetRoomParticipantsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoomParticipantsResponse) Reset()
- func (x *GetRoomParticipantsResponse) String() string
- type JoinRoomRequest
- func (*JoinRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRoomRequest) GetNickname() string
- func (x *JoinRoomRequest) GetRoomName() string
- func (*JoinRoomRequest) ProtoMessage()
- func (x *JoinRoomRequest) ProtoReflect() protoreflect.Message
- func (x *JoinRoomRequest) Reset()
- func (x *JoinRoomRequest) String() string
- type JoinRoomResponse
- type PingRequest
- type PingResponse
- type RoomParticipant
- func (*RoomParticipant) Descriptor() ([]byte, []int)deprecated
- func (x *RoomParticipant) GetId() string
- func (x *RoomParticipant) GetNickname() string
- func (*RoomParticipant) ProtoMessage()
- func (x *RoomParticipant) ProtoReflect() protoreflect.Message
- func (x *RoomParticipant) Reset()
- func (x *RoomParticipant) String() string
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetRoomName() string
- func (x *SendMessageRequest) GetValue() string
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- type SendMessageResponse
- func (*SendMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageResponse) GetSent() bool
- func (*SendMessageResponse) ProtoMessage()
- func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SendMessageResponse) Reset()
- func (x *SendMessageResponse) String() string
- type SetNicknameRequest
- func (*SetNicknameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetNicknameRequest) GetNickname() string
- func (x *SetNicknameRequest) GetRoomName() string
- func (*SetNicknameRequest) ProtoMessage()
- func (x *SetNicknameRequest) ProtoReflect() protoreflect.Message
- func (x *SetNicknameRequest) Reset()
- func (x *SetNicknameRequest) String() string
- type SetNicknameResponse
- type SubscribeToEventsRequest
- type UnimplementedApiServer
- func (UnimplementedApiServer) GetNickname(context.Context, *GetNicknameRequest) (*GetNicknameResponse, error)
- func (UnimplementedApiServer) GetNodeID(context.Context, *GetNodeIDRequest) (*GetNodeIDResponse, error)
- func (UnimplementedApiServer) GetRoomParticipants(context.Context, *GetRoomParticipantsRequest) (*GetRoomParticipantsResponse, error)
- func (UnimplementedApiServer) JoinRoom(context.Context, *JoinRoomRequest) (*JoinRoomResponse, error)
- func (UnimplementedApiServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedApiServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
- func (UnimplementedApiServer) SetNickname(context.Context, *SetNicknameRequest) (*SetNicknameResponse, error)
- func (UnimplementedApiServer) SubscribeToEvents(*SubscribeToEventsRequest, Api_SubscribeToEventsServer) error
- type UnsafeApiServer
Constants ¶
This section is empty.
Variables ¶
var ( Event_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "NEW_CHAT_MESSAGE", 2: "PEER_JOINED", 3: "PEER_LEFT", } Event_Type_value = map[string]int32{ "UNKNOWN": 0, "NEW_CHAT_MESSAGE": 1, "PEER_JOINED": 2, "PEER_LEFT": 3, } )
Enum value maps for Event_Type.
var Api_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.Api", HandlerType: (*ApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Api_Ping_Handler, }, { MethodName: "SendMessage", Handler: _Api_SendMessage_Handler, }, { MethodName: "GetNodeID", Handler: _Api_GetNodeID_Handler, }, { MethodName: "SetNickname", Handler: _Api_SetNickname_Handler, }, { MethodName: "GetNickname", Handler: _Api_GetNickname_Handler, }, { MethodName: "JoinRoom", Handler: _Api_JoinRoom_Handler, }, { MethodName: "GetRoomParticipants", Handler: _Api_GetRoomParticipants_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeToEvents", Handler: _Api_SubscribeToEvents_Handler, ServerStreams: true, }, }, Metadata: "proto/api.proto", }
Api_ServiceDesc is the grpc.ServiceDesc for Api service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterApiServer ¶
func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
Types ¶
type ApiClient ¶
type ApiClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error) GetNodeID(ctx context.Context, in *GetNodeIDRequest, opts ...grpc.CallOption) (*GetNodeIDResponse, error) SetNickname(ctx context.Context, in *SetNicknameRequest, opts ...grpc.CallOption) (*SetNicknameResponse, error) GetNickname(ctx context.Context, in *GetNicknameRequest, opts ...grpc.CallOption) (*GetNicknameResponse, error) JoinRoom(ctx context.Context, in *JoinRoomRequest, opts ...grpc.CallOption) (*JoinRoomResponse, error) GetRoomParticipants(ctx context.Context, in *GetRoomParticipantsRequest, opts ...grpc.CallOption) (*GetRoomParticipantsResponse, error) SubscribeToEvents(ctx context.Context, in *SubscribeToEventsRequest, opts ...grpc.CallOption) (Api_SubscribeToEventsClient, error) }
ApiClient is the client API for Api service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiClient ¶
func NewApiClient(cc grpc.ClientConnInterface) ApiClient
type ApiServer ¶
type ApiServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error) GetNodeID(context.Context, *GetNodeIDRequest) (*GetNodeIDResponse, error) SetNickname(context.Context, *SetNicknameRequest) (*SetNicknameResponse, error) GetNickname(context.Context, *GetNicknameRequest) (*GetNicknameResponse, error) JoinRoom(context.Context, *JoinRoomRequest) (*JoinRoomResponse, error) GetRoomParticipants(context.Context, *GetRoomParticipantsRequest) (*GetRoomParticipantsResponse, error) SubscribeToEvents(*SubscribeToEventsRequest, Api_SubscribeToEventsServer) error // contains filtered or unexported methods }
ApiServer is the server API for Api service. All implementations must embed UnimplementedApiServer for forward compatibility
type Api_SubscribeToEventsClient ¶
type Api_SubscribeToEventsClient interface { Recv() (*Event, error) grpc.ClientStream }
type Api_SubscribeToEventsServer ¶
type Api_SubscribeToEventsServer interface { Send(*Event) error grpc.ServerStream }
type ChatMessage ¶
type ChatMessage struct { SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ChatMessage) Descriptor
deprecated
func (*ChatMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.
func (*ChatMessage) GetSenderId ¶
func (x *ChatMessage) GetSenderId() string
func (*ChatMessage) GetTimestamp ¶
func (x *ChatMessage) GetTimestamp() int64
func (*ChatMessage) GetValue ¶
func (x *ChatMessage) GetValue() string
func (*ChatMessage) ProtoMessage ¶
func (*ChatMessage) ProtoMessage()
func (*ChatMessage) ProtoReflect ¶
func (x *ChatMessage) ProtoReflect() protoreflect.Message
func (*ChatMessage) Reset ¶
func (x *ChatMessage) Reset()
func (*ChatMessage) String ¶
func (x *ChatMessage) String() string
type Event ¶
type Event struct { Type Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.Event_Type" json:"type,omitempty"` NewChatMessage *EvtNewChatMessage `protobuf:"bytes,2,opt,name=new_chat_message,json=newChatMessage,proto3" json:"new_chat_message,omitempty"` PeerJoined *EvtPeerJoined `protobuf:"bytes,3,opt,name=peer_joined,json=peerJoined,proto3" json:"peer_joined,omitempty"` PeerLeft *EvtPeerLeft `protobuf:"bytes,4,opt,name=peer_left,json=peerLeft,proto3" json:"peer_left,omitempty"` SetNickname *EvtSetNickname `protobuf:"bytes,5,opt,name=set_nickname,json=setNickname,proto3" json:"set_nickname,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetNewChatMessage ¶
func (x *Event) GetNewChatMessage() *EvtNewChatMessage
func (*Event) GetPeerJoined ¶
func (x *Event) GetPeerJoined() *EvtPeerJoined
func (*Event) GetPeerLeft ¶
func (x *Event) GetPeerLeft() *EvtPeerLeft
func (*Event) GetSetNickname ¶
func (x *Event) GetSetNickname() *EvtSetNickname
func (*Event) GetType ¶
func (x *Event) GetType() Event_Type
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Type ¶
type Event_Type int32
const ( Event_UNKNOWN Event_Type = 0 Event_NEW_CHAT_MESSAGE Event_Type = 1 Event_PEER_JOINED Event_Type = 2 Event_PEER_LEFT Event_Type = 3 )
func (Event_Type) Descriptor ¶
func (Event_Type) Descriptor() protoreflect.EnumDescriptor
func (Event_Type) Enum ¶
func (x Event_Type) Enum() *Event_Type
func (Event_Type) EnumDescriptor
deprecated
func (Event_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Event_Type.Descriptor instead.
func (Event_Type) Number ¶
func (x Event_Type) Number() protoreflect.EnumNumber
func (Event_Type) String ¶
func (x Event_Type) String() string
func (Event_Type) Type ¶
func (Event_Type) Type() protoreflect.EnumType
type EvtNewChatMessage ¶
type EvtNewChatMessage struct { ChatMessage *ChatMessage `protobuf:"bytes,1,opt,name=chat_message,json=chatMessage,proto3" json:"chat_message,omitempty"` RoomName string `protobuf:"bytes,2,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // contains filtered or unexported fields }
Events
func (*EvtNewChatMessage) Descriptor
deprecated
func (*EvtNewChatMessage) Descriptor() ([]byte, []int)
Deprecated: Use EvtNewChatMessage.ProtoReflect.Descriptor instead.
func (*EvtNewChatMessage) GetChatMessage ¶
func (x *EvtNewChatMessage) GetChatMessage() *ChatMessage
func (*EvtNewChatMessage) GetRoomName ¶
func (x *EvtNewChatMessage) GetRoomName() string
func (*EvtNewChatMessage) ProtoMessage ¶
func (*EvtNewChatMessage) ProtoMessage()
func (*EvtNewChatMessage) ProtoReflect ¶
func (x *EvtNewChatMessage) ProtoReflect() protoreflect.Message
func (*EvtNewChatMessage) Reset ¶
func (x *EvtNewChatMessage) Reset()
func (*EvtNewChatMessage) String ¶
func (x *EvtNewChatMessage) String() string
type EvtPeerJoined ¶
type EvtPeerJoined struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // contains filtered or unexported fields }
func (*EvtPeerJoined) Descriptor
deprecated
func (*EvtPeerJoined) Descriptor() ([]byte, []int)
Deprecated: Use EvtPeerJoined.ProtoReflect.Descriptor instead.
func (*EvtPeerJoined) GetPeerId ¶
func (x *EvtPeerJoined) GetPeerId() string
func (*EvtPeerJoined) GetRoomName ¶
func (x *EvtPeerJoined) GetRoomName() string
func (*EvtPeerJoined) ProtoMessage ¶
func (*EvtPeerJoined) ProtoMessage()
func (*EvtPeerJoined) ProtoReflect ¶
func (x *EvtPeerJoined) ProtoReflect() protoreflect.Message
func (*EvtPeerJoined) Reset ¶
func (x *EvtPeerJoined) Reset()
func (*EvtPeerJoined) String ¶
func (x *EvtPeerJoined) String() string
type EvtPeerLeft ¶
type EvtPeerLeft struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // contains filtered or unexported fields }
func (*EvtPeerLeft) Descriptor
deprecated
func (*EvtPeerLeft) Descriptor() ([]byte, []int)
Deprecated: Use EvtPeerLeft.ProtoReflect.Descriptor instead.
func (*EvtPeerLeft) GetPeerId ¶
func (x *EvtPeerLeft) GetPeerId() string
func (*EvtPeerLeft) GetRoomName ¶
func (x *EvtPeerLeft) GetRoomName() string
func (*EvtPeerLeft) ProtoMessage ¶
func (*EvtPeerLeft) ProtoMessage()
func (*EvtPeerLeft) ProtoReflect ¶
func (x *EvtPeerLeft) ProtoReflect() protoreflect.Message
func (*EvtPeerLeft) Reset ¶
func (x *EvtPeerLeft) Reset()
func (*EvtPeerLeft) String ¶
func (x *EvtPeerLeft) String() string
type EvtSetNickname ¶
type EvtSetNickname struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*EvtSetNickname) Descriptor
deprecated
func (*EvtSetNickname) Descriptor() ([]byte, []int)
Deprecated: Use EvtSetNickname.ProtoReflect.Descriptor instead.
func (*EvtSetNickname) GetNickname ¶
func (x *EvtSetNickname) GetNickname() string
func (*EvtSetNickname) GetPeerId ¶
func (x *EvtSetNickname) GetPeerId() string
func (*EvtSetNickname) GetRoomName ¶
func (x *EvtSetNickname) GetRoomName() string
func (*EvtSetNickname) ProtoMessage ¶
func (*EvtSetNickname) ProtoMessage()
func (*EvtSetNickname) ProtoReflect ¶
func (x *EvtSetNickname) ProtoReflect() protoreflect.Message
func (*EvtSetNickname) Reset ¶
func (x *EvtSetNickname) Reset()
func (*EvtSetNickname) String ¶
func (x *EvtSetNickname) String() string
type GetNicknameRequest ¶
type GetNicknameRequest struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // contains filtered or unexported fields }
func (*GetNicknameRequest) Descriptor
deprecated
func (*GetNicknameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNicknameRequest.ProtoReflect.Descriptor instead.
func (*GetNicknameRequest) GetPeerId ¶
func (x *GetNicknameRequest) GetPeerId() string
func (*GetNicknameRequest) GetRoomName ¶
func (x *GetNicknameRequest) GetRoomName() string
func (*GetNicknameRequest) ProtoMessage ¶
func (*GetNicknameRequest) ProtoMessage()
func (*GetNicknameRequest) ProtoReflect ¶
func (x *GetNicknameRequest) ProtoReflect() protoreflect.Message
func (*GetNicknameRequest) Reset ¶
func (x *GetNicknameRequest) Reset()
func (*GetNicknameRequest) String ¶
func (x *GetNicknameRequest) String() string
type GetNicknameResponse ¶
type GetNicknameResponse struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*GetNicknameResponse) Descriptor
deprecated
func (*GetNicknameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNicknameResponse.ProtoReflect.Descriptor instead.
func (*GetNicknameResponse) GetNickname ¶
func (x *GetNicknameResponse) GetNickname() string
func (*GetNicknameResponse) ProtoMessage ¶
func (*GetNicknameResponse) ProtoMessage()
func (*GetNicknameResponse) ProtoReflect ¶
func (x *GetNicknameResponse) ProtoReflect() protoreflect.Message
func (*GetNicknameResponse) Reset ¶
func (x *GetNicknameResponse) Reset()
func (*GetNicknameResponse) String ¶
func (x *GetNicknameResponse) String() string
type GetNodeIDRequest ¶
type GetNodeIDRequest struct {
// contains filtered or unexported fields
}
func (*GetNodeIDRequest) Descriptor
deprecated
func (*GetNodeIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeIDRequest.ProtoReflect.Descriptor instead.
func (*GetNodeIDRequest) ProtoMessage ¶
func (*GetNodeIDRequest) ProtoMessage()
func (*GetNodeIDRequest) ProtoReflect ¶
func (x *GetNodeIDRequest) ProtoReflect() protoreflect.Message
func (*GetNodeIDRequest) Reset ¶
func (x *GetNodeIDRequest) Reset()
func (*GetNodeIDRequest) String ¶
func (x *GetNodeIDRequest) String() string
type GetNodeIDResponse ¶
type GetNodeIDResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetNodeIDResponse) Descriptor
deprecated
func (*GetNodeIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeIDResponse.ProtoReflect.Descriptor instead.
func (*GetNodeIDResponse) GetId ¶
func (x *GetNodeIDResponse) GetId() string
func (*GetNodeIDResponse) ProtoMessage ¶
func (*GetNodeIDResponse) ProtoMessage()
func (*GetNodeIDResponse) ProtoReflect ¶
func (x *GetNodeIDResponse) ProtoReflect() protoreflect.Message
func (*GetNodeIDResponse) Reset ¶
func (x *GetNodeIDResponse) Reset()
func (*GetNodeIDResponse) String ¶
func (x *GetNodeIDResponse) String() string
type GetRoomParticipantsRequest ¶
type GetRoomParticipantsRequest struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // contains filtered or unexported fields }
func (*GetRoomParticipantsRequest) Descriptor
deprecated
func (*GetRoomParticipantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoomParticipantsRequest.ProtoReflect.Descriptor instead.
func (*GetRoomParticipantsRequest) GetRoomName ¶
func (x *GetRoomParticipantsRequest) GetRoomName() string
func (*GetRoomParticipantsRequest) ProtoMessage ¶
func (*GetRoomParticipantsRequest) ProtoMessage()
func (*GetRoomParticipantsRequest) ProtoReflect ¶
func (x *GetRoomParticipantsRequest) ProtoReflect() protoreflect.Message
func (*GetRoomParticipantsRequest) Reset ¶
func (x *GetRoomParticipantsRequest) Reset()
func (*GetRoomParticipantsRequest) String ¶
func (x *GetRoomParticipantsRequest) String() string
type GetRoomParticipantsResponse ¶
type GetRoomParticipantsResponse struct { Participants []*RoomParticipant `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"` // contains filtered or unexported fields }
func (*GetRoomParticipantsResponse) Descriptor
deprecated
func (*GetRoomParticipantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoomParticipantsResponse.ProtoReflect.Descriptor instead.
func (*GetRoomParticipantsResponse) GetParticipants ¶
func (x *GetRoomParticipantsResponse) GetParticipants() []*RoomParticipant
func (*GetRoomParticipantsResponse) ProtoMessage ¶
func (*GetRoomParticipantsResponse) ProtoMessage()
func (*GetRoomParticipantsResponse) ProtoReflect ¶
func (x *GetRoomParticipantsResponse) ProtoReflect() protoreflect.Message
func (*GetRoomParticipantsResponse) Reset ¶
func (x *GetRoomParticipantsResponse) Reset()
func (*GetRoomParticipantsResponse) String ¶
func (x *GetRoomParticipantsResponse) String() string
type JoinRoomRequest ¶
type JoinRoomRequest struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*JoinRoomRequest) Descriptor
deprecated
func (*JoinRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinRoomRequest.ProtoReflect.Descriptor instead.
func (*JoinRoomRequest) GetNickname ¶
func (x *JoinRoomRequest) GetNickname() string
func (*JoinRoomRequest) GetRoomName ¶
func (x *JoinRoomRequest) GetRoomName() string
func (*JoinRoomRequest) ProtoMessage ¶
func (*JoinRoomRequest) ProtoMessage()
func (*JoinRoomRequest) ProtoReflect ¶
func (x *JoinRoomRequest) ProtoReflect() protoreflect.Message
func (*JoinRoomRequest) Reset ¶
func (x *JoinRoomRequest) Reset()
func (*JoinRoomRequest) String ¶
func (x *JoinRoomRequest) String() string
type JoinRoomResponse ¶
type JoinRoomResponse struct {
// contains filtered or unexported fields
}
func (*JoinRoomResponse) Descriptor
deprecated
func (*JoinRoomResponse) Descriptor() ([]byte, []int)
Deprecated: Use JoinRoomResponse.ProtoReflect.Descriptor instead.
func (*JoinRoomResponse) ProtoMessage ¶
func (*JoinRoomResponse) ProtoMessage()
func (*JoinRoomResponse) ProtoReflect ¶
func (x *JoinRoomResponse) ProtoReflect() protoreflect.Message
func (*JoinRoomResponse) Reset ¶
func (x *JoinRoomResponse) Reset()
func (*JoinRoomResponse) String ¶
func (x *JoinRoomResponse) String() string
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type RoomParticipant ¶
type RoomParticipant struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*RoomParticipant) Descriptor
deprecated
func (*RoomParticipant) Descriptor() ([]byte, []int)
Deprecated: Use RoomParticipant.ProtoReflect.Descriptor instead.
func (*RoomParticipant) GetId ¶
func (x *RoomParticipant) GetId() string
func (*RoomParticipant) GetNickname ¶
func (x *RoomParticipant) GetNickname() string
func (*RoomParticipant) ProtoMessage ¶
func (*RoomParticipant) ProtoMessage()
func (*RoomParticipant) ProtoReflect ¶
func (x *RoomParticipant) ProtoReflect() protoreflect.Message
func (*RoomParticipant) Reset ¶
func (x *RoomParticipant) Reset()
func (*RoomParticipant) String ¶
func (x *RoomParticipant) String() string
type SendMessageRequest ¶
type SendMessageRequest struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetRoomName ¶
func (x *SendMessageRequest) GetRoomName() string
func (*SendMessageRequest) GetValue ¶
func (x *SendMessageRequest) GetValue() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
type SendMessageResponse ¶
type SendMessageResponse struct { Sent bool `protobuf:"varint,1,opt,name=sent,proto3" json:"sent,omitempty"` // contains filtered or unexported fields }
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) GetSent ¶
func (x *SendMessageResponse) GetSent() bool
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
type SetNicknameRequest ¶
type SetNicknameRequest struct { RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*SetNicknameRequest) Descriptor
deprecated
func (*SetNicknameRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetNicknameRequest.ProtoReflect.Descriptor instead.
func (*SetNicknameRequest) GetNickname ¶
func (x *SetNicknameRequest) GetNickname() string
func (*SetNicknameRequest) GetRoomName ¶
func (x *SetNicknameRequest) GetRoomName() string
func (*SetNicknameRequest) ProtoMessage ¶
func (*SetNicknameRequest) ProtoMessage()
func (*SetNicknameRequest) ProtoReflect ¶
func (x *SetNicknameRequest) ProtoReflect() protoreflect.Message
func (*SetNicknameRequest) Reset ¶
func (x *SetNicknameRequest) Reset()
func (*SetNicknameRequest) String ¶
func (x *SetNicknameRequest) String() string
type SetNicknameResponse ¶
type SetNicknameResponse struct {
// contains filtered or unexported fields
}
func (*SetNicknameResponse) Descriptor
deprecated
func (*SetNicknameResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetNicknameResponse.ProtoReflect.Descriptor instead.
func (*SetNicknameResponse) ProtoMessage ¶
func (*SetNicknameResponse) ProtoMessage()
func (*SetNicknameResponse) ProtoReflect ¶
func (x *SetNicknameResponse) ProtoReflect() protoreflect.Message
func (*SetNicknameResponse) Reset ¶
func (x *SetNicknameResponse) Reset()
func (*SetNicknameResponse) String ¶
func (x *SetNicknameResponse) String() string
type SubscribeToEventsRequest ¶
type SubscribeToEventsRequest struct {
// contains filtered or unexported fields
}
func (*SubscribeToEventsRequest) Descriptor
deprecated
func (*SubscribeToEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeToEventsRequest.ProtoReflect.Descriptor instead.
func (*SubscribeToEventsRequest) ProtoMessage ¶
func (*SubscribeToEventsRequest) ProtoMessage()
func (*SubscribeToEventsRequest) ProtoReflect ¶
func (x *SubscribeToEventsRequest) ProtoReflect() protoreflect.Message
func (*SubscribeToEventsRequest) Reset ¶
func (x *SubscribeToEventsRequest) Reset()
func (*SubscribeToEventsRequest) String ¶
func (x *SubscribeToEventsRequest) String() string
type UnimplementedApiServer ¶
type UnimplementedApiServer struct { }
UnimplementedApiServer must be embedded to have forward compatible implementations.
func (UnimplementedApiServer) GetNickname ¶
func (UnimplementedApiServer) GetNickname(context.Context, *GetNicknameRequest) (*GetNicknameResponse, error)
func (UnimplementedApiServer) GetNodeID ¶
func (UnimplementedApiServer) GetNodeID(context.Context, *GetNodeIDRequest) (*GetNodeIDResponse, error)
func (UnimplementedApiServer) GetRoomParticipants ¶
func (UnimplementedApiServer) GetRoomParticipants(context.Context, *GetRoomParticipantsRequest) (*GetRoomParticipantsResponse, error)
func (UnimplementedApiServer) JoinRoom ¶
func (UnimplementedApiServer) JoinRoom(context.Context, *JoinRoomRequest) (*JoinRoomResponse, error)
func (UnimplementedApiServer) Ping ¶
func (UnimplementedApiServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedApiServer) SendMessage ¶
func (UnimplementedApiServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
func (UnimplementedApiServer) SetNickname ¶
func (UnimplementedApiServer) SetNickname(context.Context, *SetNicknameRequest) (*SetNicknameResponse, error)
func (UnimplementedApiServer) SubscribeToEvents ¶
func (UnimplementedApiServer) SubscribeToEvents(*SubscribeToEventsRequest, Api_SubscribeToEventsServer) error
type UnsafeApiServer ¶
type UnsafeApiServer interface {
// contains filtered or unexported methods
}
UnsafeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiServer will result in compilation errors.