game

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Game_CreateGame_FullMethodName = "/game.v1.Game/CreateGame"
	Game_GetGame_FullMethodName    = "/game.v1.Game/GetGame"
	Game_FindGame_FullMethodName   = "/game.v1.Game/FindGame"
	Game_UpdateGame_FullMethodName = "/game.v1.Game/UpdateGame"
	Game_DeleteGame_FullMethodName = "/game.v1.Game/DeleteGame"
)
View Source
const OperationGameCreateGame = "/game.v1.Game/CreateGame"
View Source
const OperationGameDeleteGame = "/game.v1.Game/DeleteGame"
View Source
const OperationGameFindGame = "/game.v1.Game/FindGame"
View Source
const OperationGameGetGame = "/game.v1.Game/GetGame"
View Source
const OperationGameUpdateGame = "/game.v1.Game/UpdateGame"

Variables

View Source
var File_game_proto_game_proto protoreflect.FileDescriptor
View Source
var Game_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "game.v1.Game",
	HandlerType: (*GameServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateGame",
			Handler:    _Game_CreateGame_Handler,
		},
		{
			MethodName: "GetGame",
			Handler:    _Game_GetGame_Handler,
		},
		{
			MethodName: "FindGame",
			Handler:    _Game_FindGame_Handler,
		},
		{
			MethodName: "UpdateGame",
			Handler:    _Game_UpdateGame_Handler,
		},
		{
			MethodName: "DeleteGame",
			Handler:    _Game_DeleteGame_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "game-proto/game.proto",
}

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

Functions

func RegisterGameHTTPServer

func RegisterGameHTTPServer(s *http.Server, srv GameHTTPServer)

func RegisterGameServer

func RegisterGameServer(s grpc.ServiceRegistrar, srv GameServer)

Types

type CreateGameRequest

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

func (*CreateGameRequest) Descriptor deprecated

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

Deprecated: Use CreateGameRequest.ProtoReflect.Descriptor instead.

func (*CreateGameRequest) GetName

func (x *CreateGameRequest) GetName() string

func (*CreateGameRequest) ProtoMessage

func (*CreateGameRequest) ProtoMessage()

func (*CreateGameRequest) ProtoReflect

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

func (*CreateGameRequest) Reset

func (x *CreateGameRequest) Reset()

func (*CreateGameRequest) String

func (x *CreateGameRequest) String() string

func (*CreateGameRequest) Validate

func (m *CreateGameRequest) Validate() error

Validate checks the field values on CreateGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateGameRequest) ValidateAll

func (m *CreateGameRequest) ValidateAll() error

ValidateAll checks the field values on CreateGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateGameRequestMultiError, or nil if none found.

type CreateGameRequestMultiError

type CreateGameRequestMultiError []error

CreateGameRequestMultiError is an error wrapping multiple validation errors returned by CreateGameRequest.ValidateAll() if the designated constraints aren't met.

func (CreateGameRequestMultiError) AllErrors

func (m CreateGameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateGameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateGameRequestValidationError

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

CreateGameRequestValidationError is the validation error returned by CreateGameRequest.Validate if the designated constraints aren't met.

func (CreateGameRequestValidationError) Cause

Cause function returns cause value.

func (CreateGameRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateGameRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateGameRequestValidationError) Field

Field function returns field value.

func (CreateGameRequestValidationError) Key

Key function returns key value.

func (CreateGameRequestValidationError) Reason

Reason function returns reason value.

type FindGameReply

type FindGameReply struct {
	Page *params.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	List []*GameReply `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*FindGameReply) Descriptor deprecated

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

Deprecated: Use FindGameReply.ProtoReflect.Descriptor instead.

func (*FindGameReply) GetList

func (x *FindGameReply) GetList() []*GameReply

func (*FindGameReply) GetPage

func (x *FindGameReply) GetPage() *params.Page

func (*FindGameReply) ProtoMessage

func (*FindGameReply) ProtoMessage()

func (*FindGameReply) ProtoReflect

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

func (*FindGameReply) Reset

func (x *FindGameReply) Reset()

func (*FindGameReply) String

func (x *FindGameReply) String() string

func (*FindGameReply) Validate

func (m *FindGameReply) Validate() error

Validate checks the field values on FindGameReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindGameReply) ValidateAll

func (m *FindGameReply) ValidateAll() error

ValidateAll checks the field values on FindGameReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindGameReplyMultiError, or nil if none found.

type FindGameReplyMultiError

type FindGameReplyMultiError []error

FindGameReplyMultiError is an error wrapping multiple validation errors returned by FindGameReply.ValidateAll() if the designated constraints aren't met.

func (FindGameReplyMultiError) AllErrors

func (m FindGameReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindGameReplyMultiError) Error

func (m FindGameReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FindGameReplyValidationError

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

FindGameReplyValidationError is the validation error returned by FindGameReply.Validate if the designated constraints aren't met.

func (FindGameReplyValidationError) Cause

Cause function returns cause value.

func (FindGameReplyValidationError) Error

Error satisfies the builtin error interface

func (FindGameReplyValidationError) ErrorName

func (e FindGameReplyValidationError) ErrorName() string

ErrorName returns error name.

func (FindGameReplyValidationError) Field

Field function returns field value.

func (FindGameReplyValidationError) Key

Key function returns key value.

func (FindGameReplyValidationError) Reason

Reason function returns reason value.

type FindGameRequest

type FindGameRequest struct {
	Page *params.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Name *string      `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FindGameRequest) Descriptor deprecated

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

Deprecated: Use FindGameRequest.ProtoReflect.Descriptor instead.

func (*FindGameRequest) GetName

func (x *FindGameRequest) GetName() string

func (*FindGameRequest) GetPage

func (x *FindGameRequest) GetPage() *params.Page

func (*FindGameRequest) ProtoMessage

func (*FindGameRequest) ProtoMessage()

func (*FindGameRequest) ProtoReflect

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

func (*FindGameRequest) Reset

func (x *FindGameRequest) Reset()

func (*FindGameRequest) String

func (x *FindGameRequest) String() string

func (*FindGameRequest) Validate

func (m *FindGameRequest) Validate() error

Validate checks the field values on FindGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindGameRequest) ValidateAll

func (m *FindGameRequest) ValidateAll() error

ValidateAll checks the field values on FindGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindGameRequestMultiError, or nil if none found.

type FindGameRequestMultiError

type FindGameRequestMultiError []error

FindGameRequestMultiError is an error wrapping multiple validation errors returned by FindGameRequest.ValidateAll() if the designated constraints aren't met.

func (FindGameRequestMultiError) AllErrors

func (m FindGameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindGameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindGameRequestValidationError

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

FindGameRequestValidationError is the validation error returned by FindGameRequest.Validate if the designated constraints aren't met.

func (FindGameRequestValidationError) Cause

Cause function returns cause value.

func (FindGameRequestValidationError) Error

Error satisfies the builtin error interface

func (FindGameRequestValidationError) ErrorName

func (e FindGameRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FindGameRequestValidationError) Field

Field function returns field value.

func (FindGameRequestValidationError) Key

Key function returns key value.

func (FindGameRequestValidationError) Reason

Reason function returns reason value.

type GameClient

type GameClient interface {
	// create one Game record
	CreateGame(ctx context.Context, in *CreateGameRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// query one Game record
	GetGame(ctx context.Context, in *GetGameRequest, opts ...grpc.CallOption) (*GetGameReply, error)
	// query Game list by page
	FindGame(ctx context.Context, in *FindGameRequest, opts ...grpc.CallOption) (*FindGameReply, error)
	// update one Game record by id
	UpdateGame(ctx context.Context, in *UpdateGameRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// delete one or more Game record by id
	DeleteGame(ctx context.Context, in *params.IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

GameClient is the client API for Game 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 NewGameClient

func NewGameClient(cc grpc.ClientConnInterface) GameClient

type GameHTTPClient

type GameHTTPClient interface {
	CreateGame(ctx context.Context, req *CreateGameRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteGame(ctx context.Context, req *params.IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	FindGame(ctx context.Context, req *FindGameRequest, opts ...http.CallOption) (rsp *FindGameReply, err error)
	GetGame(ctx context.Context, req *GetGameRequest, opts ...http.CallOption) (rsp *GetGameReply, err error)
	UpdateGame(ctx context.Context, req *UpdateGameRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewGameHTTPClient

func NewGameHTTPClient(client *http.Client) GameHTTPClient

type GameHTTPClientImpl

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

func (*GameHTTPClientImpl) CreateGame

func (c *GameHTTPClientImpl) CreateGame(ctx context.Context, in *CreateGameRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GameHTTPClientImpl) DeleteGame

func (c *GameHTTPClientImpl) DeleteGame(ctx context.Context, in *params.IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*GameHTTPClientImpl) FindGame

func (*GameHTTPClientImpl) GetGame

func (*GameHTTPClientImpl) UpdateGame

func (c *GameHTTPClientImpl) UpdateGame(ctx context.Context, in *UpdateGameRequest, opts ...http.CallOption) (*emptypb.Empty, error)

type GameHTTPServer

type GameHTTPServer interface {
	// CreateGame create one Game record
	CreateGame(context.Context, *CreateGameRequest) (*emptypb.Empty, error)
	// DeleteGame delete one or more Game record by id
	DeleteGame(context.Context, *params.IdsRequest) (*emptypb.Empty, error)
	// FindGame query Game list by page
	FindGame(context.Context, *FindGameRequest) (*FindGameReply, error)
	// GetGame query one Game record
	GetGame(context.Context, *GetGameRequest) (*GetGameReply, error)
	// UpdateGame update one Game record by id
	UpdateGame(context.Context, *UpdateGameRequest) (*emptypb.Empty, error)
}

type GameReply

type GameReply struct {
	Id   uint64 `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 (*GameReply) Descriptor deprecated

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

Deprecated: Use GameReply.ProtoReflect.Descriptor instead.

func (*GameReply) GetId

func (x *GameReply) GetId() uint64

func (*GameReply) GetName

func (x *GameReply) GetName() string

func (*GameReply) ProtoMessage

func (*GameReply) ProtoMessage()

func (*GameReply) ProtoReflect

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

func (*GameReply) Reset

func (x *GameReply) Reset()

func (*GameReply) String

func (x *GameReply) String() string

func (*GameReply) Validate

func (m *GameReply) Validate() error

Validate checks the field values on GameReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GameReply) ValidateAll

func (m *GameReply) ValidateAll() error

ValidateAll checks the field values on GameReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GameReplyMultiError, or nil if none found.

type GameReplyMultiError

type GameReplyMultiError []error

GameReplyMultiError is an error wrapping multiple validation errors returned by GameReply.ValidateAll() if the designated constraints aren't met.

func (GameReplyMultiError) AllErrors

func (m GameReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GameReplyMultiError) Error

func (m GameReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GameReplyValidationError

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

GameReplyValidationError is the validation error returned by GameReply.Validate if the designated constraints aren't met.

func (GameReplyValidationError) Cause

func (e GameReplyValidationError) Cause() error

Cause function returns cause value.

func (GameReplyValidationError) Error

func (e GameReplyValidationError) Error() string

Error satisfies the builtin error interface

func (GameReplyValidationError) ErrorName

func (e GameReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GameReplyValidationError) Field

func (e GameReplyValidationError) Field() string

Field function returns field value.

func (GameReplyValidationError) Key

Key function returns key value.

func (GameReplyValidationError) Reason

func (e GameReplyValidationError) Reason() string

Reason function returns reason value.

type GameServer

type GameServer interface {
	// create one Game record
	CreateGame(context.Context, *CreateGameRequest) (*emptypb.Empty, error)
	// query one Game record
	GetGame(context.Context, *GetGameRequest) (*GetGameReply, error)
	// query Game list by page
	FindGame(context.Context, *FindGameRequest) (*FindGameReply, error)
	// update one Game record by id
	UpdateGame(context.Context, *UpdateGameRequest) (*emptypb.Empty, error)
	// delete one or more Game record by id
	DeleteGame(context.Context, *params.IdsRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

GameServer is the server API for Game service. All implementations must embed UnimplementedGameServer for forward compatibility

type GetGameReply

type GetGameReply struct {
	Id   uint64 `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 (*GetGameReply) Descriptor deprecated

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

Deprecated: Use GetGameReply.ProtoReflect.Descriptor instead.

func (*GetGameReply) GetId

func (x *GetGameReply) GetId() uint64

func (*GetGameReply) GetName

func (x *GetGameReply) GetName() string

func (*GetGameReply) ProtoMessage

func (*GetGameReply) ProtoMessage()

func (*GetGameReply) ProtoReflect

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

func (*GetGameReply) Reset

func (x *GetGameReply) Reset()

func (*GetGameReply) String

func (x *GetGameReply) String() string

func (*GetGameReply) Validate

func (m *GetGameReply) Validate() error

Validate checks the field values on GetGameReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetGameReply) ValidateAll

func (m *GetGameReply) ValidateAll() error

ValidateAll checks the field values on GetGameReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetGameReplyMultiError, or nil if none found.

type GetGameReplyMultiError

type GetGameReplyMultiError []error

GetGameReplyMultiError is an error wrapping multiple validation errors returned by GetGameReply.ValidateAll() if the designated constraints aren't met.

func (GetGameReplyMultiError) AllErrors

func (m GetGameReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetGameReplyMultiError) Error

func (m GetGameReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetGameReplyValidationError

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

GetGameReplyValidationError is the validation error returned by GetGameReply.Validate if the designated constraints aren't met.

func (GetGameReplyValidationError) Cause

Cause function returns cause value.

func (GetGameReplyValidationError) Error

Error satisfies the builtin error interface

func (GetGameReplyValidationError) ErrorName

func (e GetGameReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetGameReplyValidationError) Field

Field function returns field value.

func (GetGameReplyValidationError) Key

Key function returns key value.

func (GetGameReplyValidationError) Reason

Reason function returns reason value.

type GetGameRequest

type GetGameRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGameRequest) Descriptor deprecated

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

Deprecated: Use GetGameRequest.ProtoReflect.Descriptor instead.

func (*GetGameRequest) GetId

func (x *GetGameRequest) GetId() uint64

func (*GetGameRequest) ProtoMessage

func (*GetGameRequest) ProtoMessage()

func (*GetGameRequest) ProtoReflect

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

func (*GetGameRequest) Reset

func (x *GetGameRequest) Reset()

func (*GetGameRequest) String

func (x *GetGameRequest) String() string

func (*GetGameRequest) Validate

func (m *GetGameRequest) Validate() error

Validate checks the field values on GetGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetGameRequest) ValidateAll

func (m *GetGameRequest) ValidateAll() error

ValidateAll checks the field values on GetGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetGameRequestMultiError, or nil if none found.

type GetGameRequestMultiError

type GetGameRequestMultiError []error

GetGameRequestMultiError is an error wrapping multiple validation errors returned by GetGameRequest.ValidateAll() if the designated constraints aren't met.

func (GetGameRequestMultiError) AllErrors

func (m GetGameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetGameRequestMultiError) Error

func (m GetGameRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetGameRequestValidationError

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

GetGameRequestValidationError is the validation error returned by GetGameRequest.Validate if the designated constraints aren't met.

func (GetGameRequestValidationError) Cause

Cause function returns cause value.

func (GetGameRequestValidationError) Error

Error satisfies the builtin error interface

func (GetGameRequestValidationError) ErrorName

func (e GetGameRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetGameRequestValidationError) Field

Field function returns field value.

func (GetGameRequestValidationError) Key

Key function returns key value.

func (GetGameRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedGameServer

type UnimplementedGameServer struct {
}

UnimplementedGameServer must be embedded to have forward compatible implementations.

func (UnimplementedGameServer) CreateGame

func (UnimplementedGameServer) DeleteGame

func (UnimplementedGameServer) FindGame

func (UnimplementedGameServer) GetGame

func (UnimplementedGameServer) UpdateGame

type UnsafeGameServer

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

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

type UpdateGameRequest

type UpdateGameRequest struct {
	Id   uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameRequest) Descriptor deprecated

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

Deprecated: Use UpdateGameRequest.ProtoReflect.Descriptor instead.

func (*UpdateGameRequest) GetId

func (x *UpdateGameRequest) GetId() uint64

func (*UpdateGameRequest) GetName

func (x *UpdateGameRequest) GetName() string

func (*UpdateGameRequest) ProtoMessage

func (*UpdateGameRequest) ProtoMessage()

func (*UpdateGameRequest) ProtoReflect

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

func (*UpdateGameRequest) Reset

func (x *UpdateGameRequest) Reset()

func (*UpdateGameRequest) String

func (x *UpdateGameRequest) String() string

func (*UpdateGameRequest) Validate

func (m *UpdateGameRequest) Validate() error

Validate checks the field values on UpdateGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateGameRequest) ValidateAll

func (m *UpdateGameRequest) ValidateAll() error

ValidateAll checks the field values on UpdateGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateGameRequestMultiError, or nil if none found.

type UpdateGameRequestMultiError

type UpdateGameRequestMultiError []error

UpdateGameRequestMultiError is an error wrapping multiple validation errors returned by UpdateGameRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateGameRequestMultiError) AllErrors

func (m UpdateGameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateGameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateGameRequestValidationError

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

UpdateGameRequestValidationError is the validation error returned by UpdateGameRequest.Validate if the designated constraints aren't met.

func (UpdateGameRequestValidationError) Cause

Cause function returns cause value.

func (UpdateGameRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateGameRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateGameRequestValidationError) Field

Field function returns field value.

func (UpdateGameRequestValidationError) Key

Key function returns key value.

func (UpdateGameRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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