socket

package
v0.0.0-...-881dcfe Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Response_Error_Code_name = map[int32]string{
		0: "UNKNOWN",
		1: "INVALID_REQUEST",
		2: "UNSUPPORTED_REQUEST",
	}
	Response_Error_Code_value = map[string]int32{
		"UNKNOWN":             0,
		"INVALID_REQUEST":     1,
		"UNSUPPORTED_REQUEST": 2,
	}
)

Enum value maps for Response_Error_Code.

View Source
var File_socket_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Request

type Request struct {

	// Types that are assignable to Type:
	//
	//	*Request_PlayerState_
	Type isRequest_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetPlayerState

func (x *Request) GetPlayerState() *Request_PlayerState

func (*Request) GetType

func (m *Request) GetType() isRequest_Type

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

Validate checks the field values on Request 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 (*Request) ValidateAll

func (m *Request) ValidateAll() error

ValidateAll checks the field values on Request 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 RequestMultiError, or nil if none found.

type RequestMultiError

type RequestMultiError []error

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

func (RequestMultiError) AllErrors

func (m RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMultiError) Error

func (m RequestMultiError) Error() string

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

type RequestValidationError

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

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason

func (e RequestValidationError) Reason() string

Reason function returns reason value.

type Request_PlayerState

type Request_PlayerState struct {
	Pos    *Vec2F `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"`
	Dir    *Vec2I `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	Moving bool   `protobuf:"varint,3,opt,name=moving,proto3" json:"moving,omitempty"`
	// contains filtered or unexported fields
}

func (*Request_PlayerState) Descriptor deprecated

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

Deprecated: Use Request_PlayerState.ProtoReflect.Descriptor instead.

func (*Request_PlayerState) GetDir

func (x *Request_PlayerState) GetDir() *Vec2I

func (*Request_PlayerState) GetMoving

func (x *Request_PlayerState) GetMoving() bool

func (*Request_PlayerState) GetPos

func (x *Request_PlayerState) GetPos() *Vec2F

func (*Request_PlayerState) ProtoMessage

func (*Request_PlayerState) ProtoMessage()

func (*Request_PlayerState) ProtoReflect

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

func (*Request_PlayerState) Reset

func (x *Request_PlayerState) Reset()

func (*Request_PlayerState) String

func (x *Request_PlayerState) String() string

func (*Request_PlayerState) Validate

func (m *Request_PlayerState) Validate() error

Validate checks the field values on Request_PlayerState 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 (*Request_PlayerState) ValidateAll

func (m *Request_PlayerState) ValidateAll() error

ValidateAll checks the field values on Request_PlayerState 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 Request_PlayerStateMultiError, or nil if none found.

type Request_PlayerStateMultiError

type Request_PlayerStateMultiError []error

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

func (Request_PlayerStateMultiError) AllErrors

func (m Request_PlayerStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Request_PlayerStateMultiError) Error

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

type Request_PlayerStateValidationError

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

Request_PlayerStateValidationError is the validation error returned by Request_PlayerState.Validate if the designated constraints aren't met.

func (Request_PlayerStateValidationError) Cause

Cause function returns cause value.

func (Request_PlayerStateValidationError) Error

Error satisfies the builtin error interface

func (Request_PlayerStateValidationError) ErrorName

ErrorName returns error name.

func (Request_PlayerStateValidationError) Field

Field function returns field value.

func (Request_PlayerStateValidationError) Key

Key function returns key value.

func (Request_PlayerStateValidationError) Reason

Reason function returns reason value.

type Request_PlayerState_

type Request_PlayerState_ struct {
	// Player state
	PlayerState *Request_PlayerState `protobuf:"bytes,1,opt,name=player_state,json=playerState,proto3,oneof"`
}

type Response

type Response struct {

	// Types that are assignable to Type:
	//
	//	*Response_Bulk_
	//	*Response_Error_
	//	*Response_Info_
	//	*Response_PlayerJoin_
	//	*Response_PlayerLeave
	//	*Response_PlayerState_
	Type isResponse_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBulk

func (x *Response) GetBulk() *Response_Bulk

func (*Response) GetError

func (x *Response) GetError() *Response_Error

func (*Response) GetInfo

func (x *Response) GetInfo() *Response_Info

func (*Response) GetPlayerJoin

func (x *Response) GetPlayerJoin() *Response_PlayerJoin

func (*Response) GetPlayerLeave

func (x *Response) GetPlayerLeave() uint64

func (*Response) GetPlayerState

func (x *Response) GetPlayerState() *Response_PlayerState

func (*Response) GetType

func (m *Response) GetType() isResponse_Type

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

Validate checks the field values on Response 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 (*Response) ValidateAll

func (m *Response) ValidateAll() error

ValidateAll checks the field values on Response 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 ResponseMultiError, or nil if none found.

type ResponseMultiError

type ResponseMultiError []error

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

func (ResponseMultiError) AllErrors

func (m ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResponseMultiError) Error

func (m ResponseMultiError) Error() string

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

type ResponseValidationError

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

ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.

func (ResponseValidationError) Cause

func (e ResponseValidationError) Cause() error

Cause function returns cause value.

func (ResponseValidationError) Error

func (e ResponseValidationError) Error() string

Error satisfies the builtin error interface

func (ResponseValidationError) ErrorName

func (e ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ResponseValidationError) Field

func (e ResponseValidationError) Field() string

Field function returns field value.

func (ResponseValidationError) Key

func (e ResponseValidationError) Key() bool

Key function returns key value.

func (ResponseValidationError) Reason

func (e ResponseValidationError) Reason() string

Reason function returns reason value.

type Response_Bulk

type Response_Bulk struct {
	Responses []*Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*Response_Bulk) Descriptor deprecated

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

Deprecated: Use Response_Bulk.ProtoReflect.Descriptor instead.

func (*Response_Bulk) GetResponses

func (x *Response_Bulk) GetResponses() []*Response

func (*Response_Bulk) ProtoMessage

func (*Response_Bulk) ProtoMessage()

func (*Response_Bulk) ProtoReflect

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

func (*Response_Bulk) Reset

func (x *Response_Bulk) Reset()

func (*Response_Bulk) String

func (x *Response_Bulk) String() string

func (*Response_Bulk) Validate

func (m *Response_Bulk) Validate() error

Validate checks the field values on Response_Bulk 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 (*Response_Bulk) ValidateAll

func (m *Response_Bulk) ValidateAll() error

ValidateAll checks the field values on Response_Bulk 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 Response_BulkMultiError, or nil if none found.

type Response_BulkMultiError

type Response_BulkMultiError []error

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

func (Response_BulkMultiError) AllErrors

func (m Response_BulkMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_BulkMultiError) Error

func (m Response_BulkMultiError) Error() string

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

type Response_BulkValidationError

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

Response_BulkValidationError is the validation error returned by Response_Bulk.Validate if the designated constraints aren't met.

func (Response_BulkValidationError) Cause

Cause function returns cause value.

func (Response_BulkValidationError) Error

Error satisfies the builtin error interface

func (Response_BulkValidationError) ErrorName

func (e Response_BulkValidationError) ErrorName() string

ErrorName returns error name.

func (Response_BulkValidationError) Field

Field function returns field value.

func (Response_BulkValidationError) Key

Key function returns key value.

func (Response_BulkValidationError) Reason

Reason function returns reason value.

type Response_Bulk_

type Response_Bulk_ struct {
	// Bulk responses
	Bulk *Response_Bulk `protobuf:"bytes,1,opt,name=bulk,proto3,oneof"`
}

type Response_Error

type Response_Error struct {
	Code    Response_Error_Code `protobuf:"varint,1,opt,name=code,proto3,enum=socket.Response_Error_Code" json:"code,omitempty"`
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response_Error) Descriptor deprecated

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

Deprecated: Use Response_Error.ProtoReflect.Descriptor instead.

func (*Response_Error) GetCode

func (x *Response_Error) GetCode() Response_Error_Code

func (*Response_Error) GetMessage

func (x *Response_Error) GetMessage() string

func (*Response_Error) ProtoMessage

func (*Response_Error) ProtoMessage()

func (*Response_Error) ProtoReflect

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

func (*Response_Error) Reset

func (x *Response_Error) Reset()

func (*Response_Error) String

func (x *Response_Error) String() string

func (*Response_Error) Validate

func (m *Response_Error) Validate() error

Validate checks the field values on Response_Error 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 (*Response_Error) ValidateAll

func (m *Response_Error) ValidateAll() error

ValidateAll checks the field values on Response_Error 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 Response_ErrorMultiError, or nil if none found.

type Response_ErrorMultiError

type Response_ErrorMultiError []error

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

func (Response_ErrorMultiError) AllErrors

func (m Response_ErrorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_ErrorMultiError) Error

func (m Response_ErrorMultiError) Error() string

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

type Response_ErrorValidationError

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

Response_ErrorValidationError is the validation error returned by Response_Error.Validate if the designated constraints aren't met.

func (Response_ErrorValidationError) Cause

Cause function returns cause value.

func (Response_ErrorValidationError) Error

Error satisfies the builtin error interface

func (Response_ErrorValidationError) ErrorName

func (e Response_ErrorValidationError) ErrorName() string

ErrorName returns error name.

func (Response_ErrorValidationError) Field

Field function returns field value.

func (Response_ErrorValidationError) Key

Key function returns key value.

func (Response_ErrorValidationError) Reason

Reason function returns reason value.

type Response_Error_

type Response_Error_ struct {
	// Error
	Error *Response_Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type Response_Error_Code

type Response_Error_Code int32
const (
	Response_Error_UNKNOWN             Response_Error_Code = 0
	Response_Error_INVALID_REQUEST     Response_Error_Code = 1
	Response_Error_UNSUPPORTED_REQUEST Response_Error_Code = 2
)

func (Response_Error_Code) Descriptor

func (Response_Error_Code) Enum

func (Response_Error_Code) EnumDescriptor deprecated

func (Response_Error_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Response_Error_Code.Descriptor instead.

func (Response_Error_Code) Number

func (Response_Error_Code) String

func (x Response_Error_Code) String() string

func (Response_Error_Code) Type

type Response_Info

type Response_Info struct {
	PlayerId uint64                 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Players  []*Response_PlayerJoin `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"`
	// contains filtered or unexported fields
}

func (*Response_Info) Descriptor deprecated

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

Deprecated: Use Response_Info.ProtoReflect.Descriptor instead.

func (*Response_Info) GetPlayerId

func (x *Response_Info) GetPlayerId() uint64

func (*Response_Info) GetPlayers

func (x *Response_Info) GetPlayers() []*Response_PlayerJoin

func (*Response_Info) ProtoMessage

func (*Response_Info) ProtoMessage()

func (*Response_Info) ProtoReflect

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

func (*Response_Info) Reset

func (x *Response_Info) Reset()

func (*Response_Info) String

func (x *Response_Info) String() string

func (*Response_Info) Validate

func (m *Response_Info) Validate() error

Validate checks the field values on Response_Info 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 (*Response_Info) ValidateAll

func (m *Response_Info) ValidateAll() error

ValidateAll checks the field values on Response_Info 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 Response_InfoMultiError, or nil if none found.

type Response_InfoMultiError

type Response_InfoMultiError []error

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

func (Response_InfoMultiError) AllErrors

func (m Response_InfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_InfoMultiError) Error

func (m Response_InfoMultiError) Error() string

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

type Response_InfoValidationError

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

Response_InfoValidationError is the validation error returned by Response_Info.Validate if the designated constraints aren't met.

func (Response_InfoValidationError) Cause

Cause function returns cause value.

func (Response_InfoValidationError) Error

Error satisfies the builtin error interface

func (Response_InfoValidationError) ErrorName

func (e Response_InfoValidationError) ErrorName() string

ErrorName returns error name.

func (Response_InfoValidationError) Field

Field function returns field value.

func (Response_InfoValidationError) Key

Key function returns key value.

func (Response_InfoValidationError) Reason

Reason function returns reason value.

type Response_Info_

type Response_Info_ struct {
	// Info
	Info *Response_Info `protobuf:"bytes,3,opt,name=info,proto3,oneof"`
}

type Response_PlayerJoin

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

func (*Response_PlayerJoin) Descriptor deprecated

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

Deprecated: Use Response_PlayerJoin.ProtoReflect.Descriptor instead.

func (*Response_PlayerJoin) GetId

func (x *Response_PlayerJoin) GetId() uint64

func (*Response_PlayerJoin) GetUsername

func (x *Response_PlayerJoin) GetUsername() string

func (*Response_PlayerJoin) ProtoMessage

func (*Response_PlayerJoin) ProtoMessage()

func (*Response_PlayerJoin) ProtoReflect

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

func (*Response_PlayerJoin) Reset

func (x *Response_PlayerJoin) Reset()

func (*Response_PlayerJoin) String

func (x *Response_PlayerJoin) String() string

func (*Response_PlayerJoin) Validate

func (m *Response_PlayerJoin) Validate() error

Validate checks the field values on Response_PlayerJoin 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 (*Response_PlayerJoin) ValidateAll

func (m *Response_PlayerJoin) ValidateAll() error

ValidateAll checks the field values on Response_PlayerJoin 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 Response_PlayerJoinMultiError, or nil if none found.

type Response_PlayerJoinMultiError

type Response_PlayerJoinMultiError []error

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

func (Response_PlayerJoinMultiError) AllErrors

func (m Response_PlayerJoinMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_PlayerJoinMultiError) Error

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

type Response_PlayerJoinValidationError

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

Response_PlayerJoinValidationError is the validation error returned by Response_PlayerJoin.Validate if the designated constraints aren't met.

func (Response_PlayerJoinValidationError) Cause

Cause function returns cause value.

func (Response_PlayerJoinValidationError) Error

Error satisfies the builtin error interface

func (Response_PlayerJoinValidationError) ErrorName

ErrorName returns error name.

func (Response_PlayerJoinValidationError) Field

Field function returns field value.

func (Response_PlayerJoinValidationError) Key

Key function returns key value.

func (Response_PlayerJoinValidationError) Reason

Reason function returns reason value.

type Response_PlayerJoin_

type Response_PlayerJoin_ struct {
	// Player joins game
	PlayerJoin *Response_PlayerJoin `protobuf:"bytes,10,opt,name=player_join,json=playerJoin,proto3,oneof"`
}

type Response_PlayerLeave

type Response_PlayerLeave struct {
	// Player leaves game
	PlayerLeave uint64 `protobuf:"varint,11,opt,name=player_leave,json=playerLeave,proto3,oneof"`
}

type Response_PlayerState

type Response_PlayerState struct {
	PlayerId uint64 `protobuf:"varint,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Pos      *Vec2F `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
	Dir      *Vec2I `protobuf:"bytes,3,opt,name=dir,proto3" json:"dir,omitempty"`
	Moving   bool   `protobuf:"varint,4,opt,name=moving,proto3" json:"moving,omitempty"`
	// contains filtered or unexported fields
}

func (*Response_PlayerState) Descriptor deprecated

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

Deprecated: Use Response_PlayerState.ProtoReflect.Descriptor instead.

func (*Response_PlayerState) GetDir

func (x *Response_PlayerState) GetDir() *Vec2I

func (*Response_PlayerState) GetMoving

func (x *Response_PlayerState) GetMoving() bool

func (*Response_PlayerState) GetPlayerId

func (x *Response_PlayerState) GetPlayerId() uint64

func (*Response_PlayerState) GetPos

func (x *Response_PlayerState) GetPos() *Vec2F

func (*Response_PlayerState) ProtoMessage

func (*Response_PlayerState) ProtoMessage()

func (*Response_PlayerState) ProtoReflect

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

func (*Response_PlayerState) Reset

func (x *Response_PlayerState) Reset()

func (*Response_PlayerState) String

func (x *Response_PlayerState) String() string

func (*Response_PlayerState) Validate

func (m *Response_PlayerState) Validate() error

Validate checks the field values on Response_PlayerState 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 (*Response_PlayerState) ValidateAll

func (m *Response_PlayerState) ValidateAll() error

ValidateAll checks the field values on Response_PlayerState 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 Response_PlayerStateMultiError, or nil if none found.

type Response_PlayerStateMultiError

type Response_PlayerStateMultiError []error

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

func (Response_PlayerStateMultiError) AllErrors

func (m Response_PlayerStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_PlayerStateMultiError) Error

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

type Response_PlayerStateValidationError

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

Response_PlayerStateValidationError is the validation error returned by Response_PlayerState.Validate if the designated constraints aren't met.

func (Response_PlayerStateValidationError) Cause

Cause function returns cause value.

func (Response_PlayerStateValidationError) Error

Error satisfies the builtin error interface

func (Response_PlayerStateValidationError) ErrorName

ErrorName returns error name.

func (Response_PlayerStateValidationError) Field

Field function returns field value.

func (Response_PlayerStateValidationError) Key

Key function returns key value.

func (Response_PlayerStateValidationError) Reason

Reason function returns reason value.

type Response_PlayerState_

type Response_PlayerState_ struct {
	// Player state
	PlayerState *Response_PlayerState `protobuf:"bytes,20,opt,name=player_state,json=playerState,proto3,oneof"`
}

type Vec2F

type Vec2F struct {
	X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*Vec2F) Descriptor deprecated

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

Deprecated: Use Vec2F.ProtoReflect.Descriptor instead.

func (*Vec2F) GetX

func (x *Vec2F) GetX() float64

func (*Vec2F) GetY

func (x *Vec2F) GetY() float64

func (*Vec2F) ProtoMessage

func (*Vec2F) ProtoMessage()

func (*Vec2F) ProtoReflect

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

func (*Vec2F) Reset

func (x *Vec2F) Reset()

func (*Vec2F) String

func (x *Vec2F) String() string

func (*Vec2F) Validate

func (m *Vec2F) Validate() error

Validate checks the field values on Vec2F 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 (*Vec2F) ValidateAll

func (m *Vec2F) ValidateAll() error

ValidateAll checks the field values on Vec2F 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 Vec2FMultiError, or nil if none found.

type Vec2FMultiError

type Vec2FMultiError []error

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

func (Vec2FMultiError) AllErrors

func (m Vec2FMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Vec2FMultiError) Error

func (m Vec2FMultiError) Error() string

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

type Vec2FValidationError

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

Vec2FValidationError is the validation error returned by Vec2F.Validate if the designated constraints aren't met.

func (Vec2FValidationError) Cause

func (e Vec2FValidationError) Cause() error

Cause function returns cause value.

func (Vec2FValidationError) Error

func (e Vec2FValidationError) Error() string

Error satisfies the builtin error interface

func (Vec2FValidationError) ErrorName

func (e Vec2FValidationError) ErrorName() string

ErrorName returns error name.

func (Vec2FValidationError) Field

func (e Vec2FValidationError) Field() string

Field function returns field value.

func (Vec2FValidationError) Key

func (e Vec2FValidationError) Key() bool

Key function returns key value.

func (Vec2FValidationError) Reason

func (e Vec2FValidationError) Reason() string

Reason function returns reason value.

type Vec2I

type Vec2I struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*Vec2I) Descriptor deprecated

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

Deprecated: Use Vec2I.ProtoReflect.Descriptor instead.

func (*Vec2I) GetX

func (x *Vec2I) GetX() int32

func (*Vec2I) GetY

func (x *Vec2I) GetY() int32

func (*Vec2I) ProtoMessage

func (*Vec2I) ProtoMessage()

func (*Vec2I) ProtoReflect

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

func (*Vec2I) Reset

func (x *Vec2I) Reset()

func (*Vec2I) String

func (x *Vec2I) String() string

func (*Vec2I) Validate

func (m *Vec2I) Validate() error

Validate checks the field values on Vec2I 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 (*Vec2I) ValidateAll

func (m *Vec2I) ValidateAll() error

ValidateAll checks the field values on Vec2I 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 Vec2IMultiError, or nil if none found.

type Vec2IMultiError

type Vec2IMultiError []error

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

func (Vec2IMultiError) AllErrors

func (m Vec2IMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Vec2IMultiError) Error

func (m Vec2IMultiError) Error() string

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

type Vec2IValidationError

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

Vec2IValidationError is the validation error returned by Vec2I.Validate if the designated constraints aren't met.

func (Vec2IValidationError) Cause

func (e Vec2IValidationError) Cause() error

Cause function returns cause value.

func (Vec2IValidationError) Error

func (e Vec2IValidationError) Error() string

Error satisfies the builtin error interface

func (Vec2IValidationError) ErrorName

func (e Vec2IValidationError) ErrorName() string

ErrorName returns error name.

func (Vec2IValidationError) Field

func (e Vec2IValidationError) Field() string

Field function returns field value.

func (Vec2IValidationError) Key

func (e Vec2IValidationError) Key() bool

Key function returns key value.

func (Vec2IValidationError) Reason

func (e Vec2IValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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