Documentation ¶
Index ¶
- type Addr
- type RoomsServer
- func (rs *RoomsServer) CreateRoom(ctx context.Context, req *proto.CreateRoomRequest) (*proto.ID, error)
- func (rs *RoomsServer) GetRoom(ctx context.Context, req *proto.GetRoomRequest) (*proto.Room, error)
- func (srv *RoomsServer) GetRoomMessages(ctx context.Context, req *proto.GetRoomMessagesRequest) (*proto.Messages, error)
- func (rs *RoomsServer) GetRooms(ctx context.Context, req *proto.GetRoomsRequest) (*proto.Rooms, error)
- func (s *RoomsServer) JoinMember(ctx context.Context, req *proto.JoinMemberRequest) (*proto.Empty, error)
- func (s *RoomsServer) LeaveMember(ctx context.Context, req *proto.LeaveMemberRequest) (*proto.Empty, error)
- func (s *RoomsServer) Run(ctx context.Context, addr Addr) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomsServer ¶
type RoomsServer struct { proto.UnsafeRoomsServiceServer // contains filtered or unexported fields }
func NewRoomsServer ¶
func NewRoomsServer( cmdbus *icommands.Bus, querier rooms.Querier, authInterceptor *iauth.AuthGRPCInterceptor, logger *zerolog.Logger, ) *RoomsServer
func (*RoomsServer) CreateRoom ¶
func (rs *RoomsServer) CreateRoom(ctx context.Context, req *proto.CreateRoomRequest) (*proto.ID, error)
func (*RoomsServer) GetRoom ¶
func (rs *RoomsServer) GetRoom(ctx context.Context, req *proto.GetRoomRequest) (*proto.Room, error)
func (*RoomsServer) GetRoomMessages ¶
func (srv *RoomsServer) GetRoomMessages(ctx context.Context, req *proto.GetRoomMessagesRequest) (*proto.Messages, error)
func (*RoomsServer) GetRooms ¶
func (rs *RoomsServer) GetRooms(ctx context.Context, req *proto.GetRoomsRequest) (*proto.Rooms, error)
func (*RoomsServer) JoinMember ¶
func (s *RoomsServer) JoinMember(ctx context.Context, req *proto.JoinMemberRequest) (*proto.Empty, error)
func (*RoomsServer) LeaveMember ¶
func (s *RoomsServer) LeaveMember(ctx context.Context, req *proto.LeaveMemberRequest) (*proto.Empty, error)
Click to show internal directories.
Click to hide internal directories.