Documentation
¶
Index ¶
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type Auth_ListLobbiesClient
- type Auth_ListLobbiesServer
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) ConnectRoom(ctx context.Context, req *dto1.ConnectRoom) (*room.R, error)
- func (*UnimplementedAuthServer) CreateLobby(ctx context.Context, req *dto.Auth) (*lobby.L, error)
- func (*UnimplementedAuthServer) CreatePlayer(ctx context.Context, req *dto2.CreatePlayer) (*player.P, error)
- func (*UnimplementedAuthServer) CreateRoom(ctx context.Context, req *dto1.CreateRoom) (*room.R, error)
- func (*UnimplementedAuthServer) ListLobbies(req *dto.Auth, srv Auth_ListLobbiesServer) error
- func (*UnimplementedAuthServer) Signin(ctx context.Context, req *dto.Signin) (*dto.Auth, error)
- func (*UnimplementedAuthServer) Signout(ctx context.Context, req *dto.Auth) (*types.Empty, error)
- func (*UnimplementedAuthServer) Subscribe(ctx context.Context, req *dto.Subscribe) (*types.Empty, error)
- func (*UnimplementedAuthServer) Unsubscribe(ctx context.Context, req *dto.Auth) (*types.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
Subscribe(ctx context.Context, in *dto.Subscribe, opts ...grpc.CallOption) (*types.Empty, error)
Unsubscribe(ctx context.Context, in *dto.Auth, opts ...grpc.CallOption) (*types.Empty, error)
Signin(ctx context.Context, in *dto.Signin, opts ...grpc.CallOption) (*dto.Auth, error)
Signout(ctx context.Context, in *dto.Auth, opts ...grpc.CallOption) (*types.Empty, error)
CreateLobby(ctx context.Context, in *dto.Auth, opts ...grpc.CallOption) (*lobby.L, error)
ListLobbies(ctx context.Context, in *dto.Auth, opts ...grpc.CallOption) (Auth_ListLobbiesClient, error)
CreateRoom(ctx context.Context, in *dto1.CreateRoom, opts ...grpc.CallOption) (*room.R, error)
ConnectRoom(ctx context.Context, in *dto1.ConnectRoom, opts ...grpc.CallOption) (*room.R, error)
CreatePlayer(ctx context.Context, in *dto2.CreatePlayer, opts ...grpc.CallOption) (*player.P, error)
}
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface {
Subscribe(context.Context, *dto.Subscribe) (*types.Empty, error)
Unsubscribe(context.Context, *dto.Auth) (*types.Empty, error)
Signin(context.Context, *dto.Signin) (*dto.Auth, error)
Signout(context.Context, *dto.Auth) (*types.Empty, error)
CreateLobby(context.Context, *dto.Auth) (*lobby.L, error)
ListLobbies(*dto.Auth, Auth_ListLobbiesServer) error
CreateRoom(context.Context, *dto1.CreateRoom) (*room.R, error)
ConnectRoom(context.Context, *dto1.ConnectRoom) (*room.R, error)
CreatePlayer(context.Context, *dto2.CreatePlayer) (*player.P, error)
}
AuthServer is the server API for Auth service.
type Auth_ListLobbiesClient ¶
type Auth_ListLobbiesClient interface {
Recv() (*lobby.L, error)
grpc.ClientStream
}
type Auth_ListLobbiesServer ¶
type Auth_ListLobbiesServer interface {
Send(*lobby.L) error
grpc.ServerStream
}
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct {
}
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) ConnectRoom ¶
func (*UnimplementedAuthServer) ConnectRoom(ctx context.Context, req *dto1.ConnectRoom) (*room.R, error)
func (*UnimplementedAuthServer) CreateLobby ¶
func (*UnimplementedAuthServer) CreatePlayer ¶
func (*UnimplementedAuthServer) CreatePlayer(ctx context.Context, req *dto2.CreatePlayer) (*player.P, error)
func (*UnimplementedAuthServer) CreateRoom ¶
func (*UnimplementedAuthServer) CreateRoom(ctx context.Context, req *dto1.CreateRoom) (*room.R, error)
func (*UnimplementedAuthServer) ListLobbies ¶
func (*UnimplementedAuthServer) ListLobbies(req *dto.Auth, srv Auth_ListLobbiesServer) error
func (*UnimplementedAuthServer) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.