Documentation ¶
Overview ¶
Code generated by gogs. DO NOT EDIT.
Index ¶
- Variables
- func RegisterAllComponents(s *gogs.App, srv Component)
- type Answer
- type Candidate
- type Component
- type Components
- type GTCServer
- func (*GTCServer) Descriptor() ([]byte, []int)deprecated
- func (x *GTCServer) GetAnswer() *Answer
- func (x *GTCServer) GetCandidate() *Candidate
- func (x *GTCServer) GetJoinRoom() *JoinRoom
- func (x *GTCServer) GetJoinRoomNotify() *JoinRoomNotify
- func (x *GTCServer) GetJoinRoomSuccess() *JoinRoomSuccess
- func (x *GTCServer) GetLeaveRoom() *LeaveRoom
- func (x *GTCServer) GetLeaveRoomNotify() *LeaveRoomNotify
- func (x *GTCServer) GetListRoom() *ListRoom
- func (x *GTCServer) GetListRoomResponse() *ListRoomResponse
- func (x *GTCServer) GetListRoomUsers() *ListRoomUsers
- func (x *GTCServer) GetListRoomUsersResponse() *ListRoomUsersResponse
- func (x *GTCServer) GetOffer() *Offer
- func (*GTCServer) ProtoMessage()
- func (x *GTCServer) ProtoReflect() protoreflect.Message
- func (x *GTCServer) Reset()
- func (x *GTCServer) String() string
- type JoinRoom
- type JoinRoomNotify
- func (*JoinRoomNotify) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRoomNotify) GetName() string
- func (x *JoinRoomNotify) GetRoomId() string
- func (x *JoinRoomNotify) GetUserId() int64
- func (x *JoinRoomNotify) GetUsers() []*User
- func (*JoinRoomNotify) ProtoMessage()
- func (x *JoinRoomNotify) ProtoReflect() protoreflect.Message
- func (x *JoinRoomNotify) Reset()
- func (x *JoinRoomNotify) String() string
- type JoinRoomSuccess
- func (*JoinRoomSuccess) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRoomSuccess) GetRoomId() string
- func (x *JoinRoomSuccess) GetUserId() int64
- func (x *JoinRoomSuccess) GetUsers() []*User
- func (*JoinRoomSuccess) ProtoMessage()
- func (x *JoinRoomSuccess) ProtoReflect() protoreflect.Message
- func (x *JoinRoomSuccess) Reset()
- func (x *JoinRoomSuccess) String() string
- type LeaveRoom
- type LeaveRoomNotify
- func (*LeaveRoomNotify) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveRoomNotify) GetName() string
- func (x *LeaveRoomNotify) GetRoomId() string
- func (x *LeaveRoomNotify) GetUserId() int64
- func (x *LeaveRoomNotify) GetUsers() []*User
- func (*LeaveRoomNotify) ProtoMessage()
- func (x *LeaveRoomNotify) ProtoReflect() protoreflect.Message
- func (x *LeaveRoomNotify) Reset()
- func (x *LeaveRoomNotify) String() string
- type ListRoom
- type ListRoomResponse
- type ListRoomUsers
- type ListRoomUsersResponse
- func (*ListRoomUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoomUsersResponse) GetRoomId() string
- func (x *ListRoomUsersResponse) GetUsers() []*User
- func (*ListRoomUsersResponse) ProtoMessage()
- func (x *ListRoomUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoomUsersResponse) Reset()
- func (x *ListRoomUsersResponse) String() string
- type Message
- type Offer
- type User
Constants ¶
This section is empty.
Variables ¶
var File_data_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAllComponents ¶
Types ¶
type Answer ¶
type Answer struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Answer) Descriptor
deprecated
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type Candidate ¶
type Candidate struct { Candidate string `protobuf:"bytes,1,opt,name=candidate,proto3" json:"candidate,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Candidate) Descriptor
deprecated
func (*Candidate) GetCandidate ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) ProtoReflect ¶
func (x *Candidate) ProtoReflect() protoreflect.Message
type Component ¶
type Component interface { Offer(ctx context.Context, s *session.Session, in *Offer) Answer(ctx context.Context, s *session.Session, in *Answer) Candidate(ctx context.Context, s *session.Session, in *Candidate) ListRoom(ctx context.Context, s *session.Session, in *ListRoom) JoinRoom(ctx context.Context, s *session.Session, in *JoinRoom) LeaveRoom(ctx context.Context, s *session.Session, in *LeaveRoom) ListRoomUsers(ctx context.Context, s *session.Session, in *ListRoomUsers) }
type Components ¶
type Components struct { // don't care the filed name, we never use it // but you should be careful about the filed number GTCServer *GTCServer `protobuf:"bytes,1,opt,name=GTCServer,proto3" json:"GTCServer,omitempty"` // contains filtered or unexported fields }
the Main Components only have one, include some child componetns all the message in this struct is the componetns @gogs:Components
func (*Components) Descriptor
deprecated
func (*Components) Descriptor() ([]byte, []int)
Deprecated: Use Components.ProtoReflect.Descriptor instead.
func (*Components) GetGTCServer ¶ added in v0.0.4
func (x *Components) GetGTCServer() *GTCServer
func (*Components) ProtoMessage ¶
func (*Components) ProtoMessage()
func (*Components) ProtoReflect ¶
func (x *Components) ProtoReflect() protoreflect.Message
func (*Components) Reset ¶
func (x *Components) Reset()
func (*Components) String ¶
func (x *Components) String() string
type GTCServer ¶ added in v0.0.4
type GTCServer struct { Offer *Offer `protobuf:"bytes,1,opt,name=Offer,proto3" json:"Offer,omitempty"` Answer *Answer `protobuf:"bytes,2,opt,name=Answer,proto3" json:"Answer,omitempty"` Candidate *Candidate `protobuf:"bytes,3,opt,name=Candidate,proto3" json:"Candidate,omitempty"` ListRoom *ListRoom `protobuf:"bytes,4,opt,name=ListRoom,proto3" json:"ListRoom,omitempty"` ListRoomResponse *ListRoomResponse `protobuf:"bytes,5,opt,name=ListRoomResponse,proto3" json:"ListRoomResponse,omitempty"` JoinRoom *JoinRoom `protobuf:"bytes,6,opt,name=JoinRoom,proto3" json:"JoinRoom,omitempty"` JoinRoomSuccess *JoinRoomSuccess `protobuf:"bytes,7,opt,name=JoinRoomSuccess,proto3" json:"JoinRoomSuccess,omitempty"` JoinRoomNotify *JoinRoomNotify `protobuf:"bytes,8,opt,name=JoinRoomNotify,proto3" json:"JoinRoomNotify,omitempty"` LeaveRoom *LeaveRoom `protobuf:"bytes,9,opt,name=LeaveRoom,proto3" json:"LeaveRoom,omitempty"` LeaveRoomNotify *LeaveRoomNotify `protobuf:"bytes,10,opt,name=LeaveRoomNotify,proto3" json:"LeaveRoomNotify,omitempty"` ListRoomUsers *ListRoomUsers `protobuf:"bytes,11,opt,name=ListRoomUsers,proto3" json:"ListRoomUsers,omitempty"` ListRoomUsersResponse *ListRoomUsersResponse `protobuf:"bytes,12,opt,name=ListRoomUsersResponse,proto3" json:"ListRoomUsersResponse,omitempty"` // contains filtered or unexported fields }
componetns, all the messages are used for communication between the client and the server
func (*GTCServer) Descriptor
deprecated
added in
v0.0.4
func (*GTCServer) GetCandidate ¶ added in v0.0.4
func (*GTCServer) GetJoinRoom ¶ added in v0.0.4
func (*GTCServer) GetJoinRoomNotify ¶ added in v0.0.4
func (x *GTCServer) GetJoinRoomNotify() *JoinRoomNotify
func (*GTCServer) GetJoinRoomSuccess ¶ added in v0.0.4
func (x *GTCServer) GetJoinRoomSuccess() *JoinRoomSuccess
func (*GTCServer) GetLeaveRoom ¶ added in v0.0.4
func (*GTCServer) GetLeaveRoomNotify ¶ added in v0.0.4
func (x *GTCServer) GetLeaveRoomNotify() *LeaveRoomNotify
func (*GTCServer) GetListRoom ¶ added in v0.0.4
func (*GTCServer) GetListRoomResponse ¶ added in v0.0.4
func (x *GTCServer) GetListRoomResponse() *ListRoomResponse
func (*GTCServer) GetListRoomUsers ¶ added in v0.0.4
func (x *GTCServer) GetListRoomUsers() *ListRoomUsers
func (*GTCServer) GetListRoomUsersResponse ¶ added in v0.0.4
func (x *GTCServer) GetListRoomUsersResponse() *ListRoomUsersResponse
func (*GTCServer) ProtoMessage ¶ added in v0.0.4
func (*GTCServer) ProtoMessage()
func (*GTCServer) ProtoReflect ¶ added in v0.0.4
func (x *GTCServer) ProtoReflect() protoreflect.Message
type JoinRoom ¶
type JoinRoom struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
user join some room
func (*JoinRoom) Descriptor
deprecated
func (*JoinRoom) ProtoMessage ¶
func (*JoinRoom) ProtoMessage()
func (*JoinRoom) ProtoReflect ¶
func (x *JoinRoom) ProtoReflect() protoreflect.Message
type JoinRoomNotify ¶
type JoinRoomNotify struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // the user name who join the room Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // the users in the room Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
@gogs:ServerMessage
func (*JoinRoomNotify) Descriptor
deprecated
func (*JoinRoomNotify) Descriptor() ([]byte, []int)
Deprecated: Use JoinRoomNotify.ProtoReflect.Descriptor instead.
func (*JoinRoomNotify) GetName ¶
func (x *JoinRoomNotify) GetName() string
func (*JoinRoomNotify) GetRoomId ¶
func (x *JoinRoomNotify) GetRoomId() string
func (*JoinRoomNotify) GetUserId ¶
func (x *JoinRoomNotify) GetUserId() int64
func (*JoinRoomNotify) GetUsers ¶
func (x *JoinRoomNotify) GetUsers() []*User
func (*JoinRoomNotify) ProtoMessage ¶
func (*JoinRoomNotify) ProtoMessage()
func (*JoinRoomNotify) ProtoReflect ¶
func (x *JoinRoomNotify) ProtoReflect() protoreflect.Message
func (*JoinRoomNotify) Reset ¶
func (x *JoinRoomNotify) Reset()
func (*JoinRoomNotify) String ¶
func (x *JoinRoomNotify) String() string
type JoinRoomSuccess ¶
type JoinRoomSuccess struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // the users in the room Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
@gogs:ServerMessage
func (*JoinRoomSuccess) Descriptor
deprecated
func (*JoinRoomSuccess) Descriptor() ([]byte, []int)
Deprecated: Use JoinRoomSuccess.ProtoReflect.Descriptor instead.
func (*JoinRoomSuccess) GetRoomId ¶
func (x *JoinRoomSuccess) GetRoomId() string
func (*JoinRoomSuccess) GetUserId ¶ added in v0.2.2
func (x *JoinRoomSuccess) GetUserId() int64
func (*JoinRoomSuccess) GetUsers ¶
func (x *JoinRoomSuccess) GetUsers() []*User
func (*JoinRoomSuccess) ProtoMessage ¶
func (*JoinRoomSuccess) ProtoMessage()
func (*JoinRoomSuccess) ProtoReflect ¶
func (x *JoinRoomSuccess) ProtoReflect() protoreflect.Message
func (*JoinRoomSuccess) Reset ¶
func (x *JoinRoomSuccess) Reset()
func (*JoinRoomSuccess) String ¶
func (x *JoinRoomSuccess) String() string
type LeaveRoom ¶
type LeaveRoom struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*LeaveRoom) Descriptor
deprecated
func (*LeaveRoom) ProtoMessage ¶
func (*LeaveRoom) ProtoMessage()
func (*LeaveRoom) ProtoReflect ¶
func (x *LeaveRoom) ProtoReflect() protoreflect.Message
type LeaveRoomNotify ¶
type LeaveRoomNotify struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // the user who leave the room Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // the users in the room Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
@gogs:ServerMessage
func (*LeaveRoomNotify) Descriptor
deprecated
func (*LeaveRoomNotify) Descriptor() ([]byte, []int)
Deprecated: Use LeaveRoomNotify.ProtoReflect.Descriptor instead.
func (*LeaveRoomNotify) GetName ¶
func (x *LeaveRoomNotify) GetName() string
func (*LeaveRoomNotify) GetRoomId ¶
func (x *LeaveRoomNotify) GetRoomId() string
func (*LeaveRoomNotify) GetUserId ¶
func (x *LeaveRoomNotify) GetUserId() int64
func (*LeaveRoomNotify) GetUsers ¶
func (x *LeaveRoomNotify) GetUsers() []*User
func (*LeaveRoomNotify) ProtoMessage ¶
func (*LeaveRoomNotify) ProtoMessage()
func (*LeaveRoomNotify) ProtoReflect ¶
func (x *LeaveRoomNotify) ProtoReflect() protoreflect.Message
func (*LeaveRoomNotify) Reset ¶
func (x *LeaveRoomNotify) Reset()
func (*LeaveRoomNotify) String ¶
func (x *LeaveRoomNotify) String() string
type ListRoom ¶
type ListRoom struct {
// contains filtered or unexported fields
}
func (*ListRoom) Descriptor
deprecated
func (*ListRoom) ProtoMessage ¶
func (*ListRoom) ProtoMessage()
func (*ListRoom) ProtoReflect ¶
func (x *ListRoom) ProtoReflect() protoreflect.Message
type ListRoomResponse ¶
type ListRoomResponse struct { Rooms []string `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` // contains filtered or unexported fields }
@gogs:ServerMessage
func (*ListRoomResponse) Descriptor
deprecated
func (*ListRoomResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoomResponse.ProtoReflect.Descriptor instead.
func (*ListRoomResponse) GetRooms ¶
func (x *ListRoomResponse) GetRooms() []string
func (*ListRoomResponse) ProtoMessage ¶
func (*ListRoomResponse) ProtoMessage()
func (*ListRoomResponse) ProtoReflect ¶
func (x *ListRoomResponse) ProtoReflect() protoreflect.Message
func (*ListRoomResponse) Reset ¶
func (x *ListRoomResponse) Reset()
func (*ListRoomResponse) String ¶
func (x *ListRoomResponse) String() string
type ListRoomUsers ¶
type ListRoomUsers struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // contains filtered or unexported fields }
func (*ListRoomUsers) Descriptor
deprecated
func (*ListRoomUsers) Descriptor() ([]byte, []int)
Deprecated: Use ListRoomUsers.ProtoReflect.Descriptor instead.
func (*ListRoomUsers) GetRoomId ¶
func (x *ListRoomUsers) GetRoomId() string
func (*ListRoomUsers) ProtoMessage ¶
func (*ListRoomUsers) ProtoMessage()
func (*ListRoomUsers) ProtoReflect ¶
func (x *ListRoomUsers) ProtoReflect() protoreflect.Message
func (*ListRoomUsers) Reset ¶
func (x *ListRoomUsers) Reset()
func (*ListRoomUsers) String ¶
func (x *ListRoomUsers) String() string
type ListRoomUsersResponse ¶
type ListRoomUsersResponse struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
@gogs:ServerMessage
func (*ListRoomUsersResponse) Descriptor
deprecated
func (*ListRoomUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoomUsersResponse.ProtoReflect.Descriptor instead.
func (*ListRoomUsersResponse) GetRoomId ¶
func (x *ListRoomUsersResponse) GetRoomId() string
func (*ListRoomUsersResponse) GetUsers ¶
func (x *ListRoomUsersResponse) GetUsers() []*User
func (*ListRoomUsersResponse) ProtoMessage ¶
func (*ListRoomUsersResponse) ProtoMessage()
func (*ListRoomUsersResponse) ProtoReflect ¶
func (x *ListRoomUsersResponse) ProtoReflect() protoreflect.Message
func (*ListRoomUsersResponse) Reset ¶
func (x *ListRoomUsersResponse) Reset()
func (*ListRoomUsersResponse) String ¶
func (x *ListRoomUsersResponse) String() string
type Message ¶
type Message struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Offer ¶
type Offer struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Offer) Descriptor
deprecated
func (*Offer) ProtoMessage ¶
func (*Offer) ProtoMessage()
func (*Offer) ProtoReflect ¶
func (x *Offer) ProtoReflect() protoreflect.Message
type User ¶ added in v0.2.2
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
added in
v0.2.2
func (*User) ProtoMessage ¶ added in v0.2.2
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v0.2.2
func (x *User) ProtoReflect() protoreflect.Message