grpc

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) CreateLobby(ctx context.Context, req *dto.Auth) (*lobby.L, error)

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) Signin

func (*UnimplementedAuthServer) Signin(ctx context.Context, req *dto.Signin) (*dto.Auth, error)

func (*UnimplementedAuthServer) Signout

func (*UnimplementedAuthServer) Signout(ctx context.Context, req *dto.Auth) (*types.Empty, error)

func (*UnimplementedAuthServer) Subscribe

func (*UnimplementedAuthServer) Unsubscribe

func (*UnimplementedAuthServer) Unsubscribe(ctx context.Context, req *dto.Auth) (*types.Empty, error)

Jump to

Keyboard shortcuts

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