match

package
v0.0.0-...-4a96510 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_match_match_proto protoreflect.FileDescriptor
View Source
var File_proto_match_user_proto protoreflect.FileDescriptor
View Source
var MatchSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "match.MatchSvc",
	HandlerType: (*MatchSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _MatchSvc_CreateUser_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _MatchSvc_Create_Handler,
		},
		{
			MethodName: "Find",
			Handler:    _MatchSvc_Find_Handler,
		},
		{
			MethodName: "AppendMembers",
			Handler:    _MatchSvc_AppendMembers_Handler,
		},
		{
			MethodName: "Shuffle",
			Handler:    _MatchSvc_Shuffle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/match/match.proto",
}

MatchSvc_ServiceDesc is the grpc.ServiceDesc for MatchSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMatchSvcServer

func RegisterMatchSvcServer(s grpc.ServiceRegistrar, srv MatchSvcServer)

Types

type AppendMemberRequest

type AppendMemberRequest struct {
	MatchId int32   `protobuf:"varint,1,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
	Members []*User `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*AppendMemberRequest) Descriptor deprecated

func (*AppendMemberRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppendMemberRequest.ProtoReflect.Descriptor instead.

func (*AppendMemberRequest) GetMatchId

func (x *AppendMemberRequest) GetMatchId() int32

func (*AppendMemberRequest) GetMembers

func (x *AppendMemberRequest) GetMembers() []*User

func (*AppendMemberRequest) ProtoMessage

func (*AppendMemberRequest) ProtoMessage()

func (*AppendMemberRequest) ProtoReflect

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

func (*AppendMemberRequest) Reset

func (x *AppendMemberRequest) Reset()

func (*AppendMemberRequest) String

func (x *AppendMemberRequest) String() string

type CreateMatchRequest

type CreateMatchRequest struct {
	Owner *User `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMatchRequest) Descriptor deprecated

func (*CreateMatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMatchRequest.ProtoReflect.Descriptor instead.

func (*CreateMatchRequest) GetOwner

func (x *CreateMatchRequest) GetOwner() *User

func (*CreateMatchRequest) ProtoMessage

func (*CreateMatchRequest) ProtoMessage()

func (*CreateMatchRequest) ProtoReflect

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

func (*CreateMatchRequest) Reset

func (x *CreateMatchRequest) Reset()

func (*CreateMatchRequest) String

func (x *CreateMatchRequest) String() string

type CreateMatchResponse

type CreateMatchResponse struct {
	Match *Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMatchResponse) Descriptor deprecated

func (*CreateMatchResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateMatchResponse.ProtoReflect.Descriptor instead.

func (*CreateMatchResponse) GetMatch

func (x *CreateMatchResponse) GetMatch() *Match

func (*CreateMatchResponse) ProtoMessage

func (*CreateMatchResponse) ProtoMessage()

func (*CreateMatchResponse) ProtoReflect

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

func (*CreateMatchResponse) Reset

func (x *CreateMatchResponse) Reset()

func (*CreateMatchResponse) String

func (x *CreateMatchResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetName

func (x *CreateUserRequest) GetName() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

func (*CreateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type FindRequest

type FindRequest struct {
	MatchId int32 `protobuf:"varint,1,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FindRequest) Descriptor deprecated

func (*FindRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.

func (*FindRequest) GetMatchId

func (x *FindRequest) GetMatchId() int32

func (*FindRequest) ProtoMessage

func (*FindRequest) ProtoMessage()

func (*FindRequest) ProtoReflect

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

func (*FindRequest) Reset

func (x *FindRequest) Reset()

func (*FindRequest) String

func (x *FindRequest) String() string

type FindResponse

type FindResponse struct {
	Match *Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*FindResponse) Descriptor deprecated

func (*FindResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindResponse.ProtoReflect.Descriptor instead.

func (*FindResponse) GetMatch

func (x *FindResponse) GetMatch() *Match

func (*FindResponse) ProtoMessage

func (*FindResponse) ProtoMessage()

func (*FindResponse) ProtoReflect

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

func (*FindResponse) Reset

func (x *FindResponse) Reset()

func (*FindResponse) String

func (x *FindResponse) String() string

type Match

type Match struct {
	Id      int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Owner   *User   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Members []*User `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	Team1   *Team   `protobuf:"bytes,4,opt,name=team1,proto3" json:"team1,omitempty"`
	Team2   *Team   `protobuf:"bytes,5,opt,name=team2,proto3" json:"team2,omitempty"`
	// contains filtered or unexported fields
}

func (*Match) Descriptor deprecated

func (*Match) Descriptor() ([]byte, []int)

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetId

func (x *Match) GetId() int32

func (*Match) GetMembers

func (x *Match) GetMembers() []*User

func (*Match) GetOwner

func (x *Match) GetOwner() *User

func (*Match) GetTeam1

func (x *Match) GetTeam1() *Team

func (*Match) GetTeam2

func (x *Match) GetTeam2() *Team

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

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

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

type MatchSvcClient

type MatchSvcClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	Create(ctx context.Context, in *CreateMatchRequest, opts ...grpc.CallOption) (*CreateMatchResponse, error)
	Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (*FindResponse, error)
	AppendMembers(ctx context.Context, in *AppendMemberRequest, opts ...grpc.CallOption) (*Match, error)
	Shuffle(ctx context.Context, in *ShuffleRequest, opts ...grpc.CallOption) (*ShuffleResponse, error)
}

MatchSvcClient is the client API for MatchSvc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMatchSvcClient

func NewMatchSvcClient(cc grpc.ClientConnInterface) MatchSvcClient

type MatchSvcServer

type MatchSvcServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	Create(context.Context, *CreateMatchRequest) (*CreateMatchResponse, error)
	Find(context.Context, *FindRequest) (*FindResponse, error)
	AppendMembers(context.Context, *AppendMemberRequest) (*Match, error)
	Shuffle(context.Context, *ShuffleRequest) (*ShuffleResponse, error)
	// contains filtered or unexported methods
}

MatchSvcServer is the server API for MatchSvc service. All implementations must embed UnimplementedMatchSvcServer for forward compatibility

type ShuffleRequest

type ShuffleRequest struct {
	MatchId int32 `protobuf:"varint,1,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShuffleRequest) Descriptor deprecated

func (*ShuffleRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShuffleRequest.ProtoReflect.Descriptor instead.

func (*ShuffleRequest) GetMatchId

func (x *ShuffleRequest) GetMatchId() int32

func (*ShuffleRequest) ProtoMessage

func (*ShuffleRequest) ProtoMessage()

func (*ShuffleRequest) ProtoReflect

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

func (*ShuffleRequest) Reset

func (x *ShuffleRequest) Reset()

func (*ShuffleRequest) String

func (x *ShuffleRequest) String() string

type ShuffleResponse

type ShuffleResponse struct {
	// contains filtered or unexported fields
}

func (*ShuffleResponse) Descriptor deprecated

func (*ShuffleResponse) Descriptor() ([]byte, []int)

Deprecated: Use ShuffleResponse.ProtoReflect.Descriptor instead.

func (*ShuffleResponse) ProtoMessage

func (*ShuffleResponse) ProtoMessage()

func (*ShuffleResponse) ProtoReflect

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

func (*ShuffleResponse) Reset

func (x *ShuffleResponse) Reset()

func (*ShuffleResponse) String

func (x *ShuffleResponse) String() string

type Team

type Team struct {
	Id      int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Players []*User `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"`
	// contains filtered or unexported fields
}

func (*Team) Descriptor deprecated

func (*Team) Descriptor() ([]byte, []int)

Deprecated: Use Team.ProtoReflect.Descriptor instead.

func (*Team) GetId

func (x *Team) GetId() int32

func (*Team) GetPlayers

func (x *Team) GetPlayers() []*User

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) ProtoReflect

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

func (*Team) Reset

func (x *Team) Reset()

func (*Team) String

func (x *Team) String() string

type UnimplementedMatchSvcServer

type UnimplementedMatchSvcServer struct {
}

UnimplementedMatchSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedMatchSvcServer) AppendMembers

func (UnimplementedMatchSvcServer) Create

func (UnimplementedMatchSvcServer) CreateUser

func (UnimplementedMatchSvcServer) Find

func (UnimplementedMatchSvcServer) Shuffle

type UnsafeMatchSvcServer

type UnsafeMatchSvcServer interface {
	// contains filtered or unexported methods
}

UnsafeMatchSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MatchSvcServer will result in compilation errors.

type User

type User struct {
	Id   int32  `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

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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