grpc

package
v0.0.0-...-0451d2a Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr string

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)

func (*RoomsServer) Run

func (s *RoomsServer) Run(ctx context.Context, addr Addr) error

Jump to

Keyboard shortcuts

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