model

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by gogs. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

Functions

func RegisterAllComponents

func RegisterAllComponents(s *gogs.App, srv Component)

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) Descriptor() ([]byte, []int)

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetData

func (x *Answer) GetData() string

func (*Answer) GetUserId

func (x *Answer) GetUserId() int64

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

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

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Candidate.ProtoReflect.Descriptor instead.

func (*Candidate) GetCandidate

func (x *Candidate) GetCandidate() string

func (*Candidate) GetUserId

func (x *Candidate) GetUserId() int64

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) ProtoReflect

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

func (*Candidate) Reset

func (x *Candidate) Reset()

func (*Candidate) String

func (x *Candidate) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GTCServer.ProtoReflect.Descriptor instead.

func (*GTCServer) GetAnswer added in v0.0.4

func (x *GTCServer) GetAnswer() *Answer

func (*GTCServer) GetCandidate added in v0.0.4

func (x *GTCServer) GetCandidate() *Candidate

func (*GTCServer) GetJoinRoom added in v0.0.4

func (x *GTCServer) GetJoinRoom() *JoinRoom

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 (x *GTCServer) GetLeaveRoom() *LeaveRoom

func (*GTCServer) GetLeaveRoomNotify added in v0.0.4

func (x *GTCServer) GetLeaveRoomNotify() *LeaveRoomNotify

func (*GTCServer) GetListRoom added in v0.0.4

func (x *GTCServer) GetListRoom() *ListRoom

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) GetOffer added in v0.0.4

func (x *GTCServer) GetOffer() *Offer

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

func (*GTCServer) Reset added in v0.0.4

func (x *GTCServer) Reset()

func (*GTCServer) String added in v0.0.4

func (x *GTCServer) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use JoinRoom.ProtoReflect.Descriptor instead.

func (*JoinRoom) GetName

func (x *JoinRoom) GetName() string

func (*JoinRoom) GetRoomId

func (x *JoinRoom) GetRoomId() string

func (*JoinRoom) ProtoMessage

func (*JoinRoom) ProtoMessage()

func (*JoinRoom) ProtoReflect

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

func (*JoinRoom) Reset

func (x *JoinRoom) Reset()

func (*JoinRoom) String

func (x *JoinRoom) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use LeaveRoom.ProtoReflect.Descriptor instead.

func (*LeaveRoom) GetName

func (x *LeaveRoom) GetName() string

func (*LeaveRoom) GetRoomId

func (x *LeaveRoom) GetRoomId() string

func (*LeaveRoom) ProtoMessage

func (*LeaveRoom) ProtoMessage()

func (*LeaveRoom) ProtoReflect

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

func (*LeaveRoom) Reset

func (x *LeaveRoom) Reset()

func (*LeaveRoom) String

func (x *LeaveRoom) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ListRoom.ProtoReflect.Descriptor instead.

func (*ListRoom) ProtoMessage

func (*ListRoom) ProtoMessage()

func (*ListRoom) ProtoReflect

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

func (*ListRoom) Reset

func (x *ListRoom) Reset()

func (*ListRoom) String

func (x *ListRoom) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData

func (x *Message) GetData() string

func (*Message) GetName

func (x *Message) GetName() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Offer.ProtoReflect.Descriptor instead.

func (*Offer) GetData

func (x *Offer) GetData() string

func (*Offer) GetUserId

func (x *Offer) GetUserId() int64

func (*Offer) ProtoMessage

func (*Offer) ProtoMessage()

func (*Offer) ProtoReflect

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

func (*Offer) Reset

func (x *Offer) Reset()

func (*Offer) String

func (x *Offer) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId added in v0.2.2

func (x *User) GetId() int64

func (*User) GetName added in v0.2.2

func (x *User) GetName() string

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

func (*User) Reset added in v0.2.2

func (x *User) Reset()

func (*User) String added in v0.2.2

func (x *User) String() string

Jump to

Keyboard shortcuts

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