Documentation ¶
Index ¶
- Variables
- func PlayerFactory(factory func() Player)
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
- func (this *ChangePasswordRequest) Equal(that interface{}) bool
- func (m *ChangePasswordRequest) GetCurrentPassword() string
- func (m *ChangePasswordRequest) GetNewPassword() string
- func (this *ChangePasswordRequest) GoString() string
- func (m *ChangePasswordRequest) Marshal() (dAtA []byte, err error)
- func (m *ChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ChangePasswordRequest) ProtoMessage()
- func (m *ChangePasswordRequest) Reset()
- func (m *ChangePasswordRequest) Size() (n int)
- func (this *ChangePasswordRequest) String() string
- func (m *ChangePasswordRequest) Unmarshal(dAtA []byte) error
- func (m *ChangePasswordRequest) XXX_DiscardUnknown()
- func (m *ChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangePasswordRequest) XXX_Merge(src proto.Message)
- func (m *ChangePasswordRequest) XXX_Size() int
- func (m *ChangePasswordRequest) XXX_Unmarshal(b []byte) error
- type CompareHashRequest
- func (*CompareHashRequest) Descriptor() ([]byte, []int)
- func (this *CompareHashRequest) Equal(that interface{}) bool
- func (m *CompareHashRequest) GetPassword() string
- func (this *CompareHashRequest) GoString() string
- func (m *CompareHashRequest) Marshal() (dAtA []byte, err error)
- func (m *CompareHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CompareHashRequest) ProtoMessage()
- func (m *CompareHashRequest) Reset()
- func (m *CompareHashRequest) Size() (n int)
- func (this *CompareHashRequest) String() string
- func (m *CompareHashRequest) Unmarshal(dAtA []byte) error
- func (m *CompareHashRequest) XXX_DiscardUnknown()
- func (m *CompareHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompareHashRequest) XXX_Merge(src proto.Message)
- func (m *CompareHashRequest) XXX_Size() int
- func (m *CompareHashRequest) XXX_Unmarshal(b []byte) error
- type CompareHashResponse
- func (*CompareHashResponse) Descriptor() ([]byte, []int)
- func (this *CompareHashResponse) Equal(that interface{}) bool
- func (m *CompareHashResponse) GetError() HashingError
- func (m *CompareHashResponse) GetNeedsRehash() bool
- func (m *CompareHashResponse) GetValid() bool
- func (this *CompareHashResponse) GoString() string
- func (m *CompareHashResponse) Marshal() (dAtA []byte, err error)
- func (m *CompareHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CompareHashResponse) ProtoMessage()
- func (m *CompareHashResponse) Reset()
- func (m *CompareHashResponse) Size() (n int)
- func (this *CompareHashResponse) String() string
- func (m *CompareHashResponse) Unmarshal(dAtA []byte) error
- func (m *CompareHashResponse) XXX_DiscardUnknown()
- func (m *CompareHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompareHashResponse) XXX_Merge(src proto.Message)
- func (m *CompareHashResponse) XXX_Size() int
- func (m *CompareHashResponse) XXX_Unmarshal(b []byte) error
- type CurrencyRequest
- func (*CurrencyRequest) Descriptor() ([]byte, []int)
- func (this *CurrencyRequest) Equal(that interface{}) bool
- func (m *CurrencyRequest) GetAmount() uint32
- func (m *CurrencyRequest) GetCurrencyType() CurrencyType
- func (this *CurrencyRequest) GoString() string
- func (m *CurrencyRequest) Marshal() (dAtA []byte, err error)
- func (m *CurrencyRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CurrencyRequest) ProtoMessage()
- func (m *CurrencyRequest) Reset()
- func (m *CurrencyRequest) Size() (n int)
- func (this *CurrencyRequest) String() string
- func (m *CurrencyRequest) Unmarshal(dAtA []byte) error
- func (m *CurrencyRequest) XXX_DiscardUnknown()
- func (m *CurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyRequest) XXX_Merge(src proto.Message)
- func (m *CurrencyRequest) XXX_Size() int
- func (m *CurrencyRequest) XXX_Unmarshal(b []byte) error
- type CurrencyResponse
- func (*CurrencyResponse) Descriptor() ([]byte, []int)
- func (this *CurrencyResponse) Equal(that interface{}) bool
- func (m *CurrencyResponse) GetCurrencyType() CurrencyType
- func (m *CurrencyResponse) GetNewAmount() uint32
- func (this *CurrencyResponse) GoString() string
- func (m *CurrencyResponse) Marshal() (dAtA []byte, err error)
- func (m *CurrencyResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CurrencyResponse) ProtoMessage()
- func (m *CurrencyResponse) Reset()
- func (m *CurrencyResponse) Size() (n int)
- func (this *CurrencyResponse) String() string
- func (m *CurrencyResponse) Unmarshal(dAtA []byte) error
- func (m *CurrencyResponse) XXX_DiscardUnknown()
- func (m *CurrencyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyResponse) XXX_Merge(src proto.Message)
- func (m *CurrencyResponse) XXX_Size() int
- func (m *CurrencyResponse) XXX_Unmarshal(b []byte) error
- type CurrencyType
- type EntityType
- type HashingError
- type LookRequest
- func (*LookRequest) Descriptor() ([]byte, []int)
- func (this *LookRequest) Equal(that interface{}) bool
- func (m *LookRequest) GetEntityType() EntityType
- func (m *LookRequest) GetFigure() string
- func (m *LookRequest) GetGender() string
- func (this *LookRequest) GoString() string
- func (m *LookRequest) Marshal() (dAtA []byte, err error)
- func (m *LookRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LookRequest) ProtoMessage()
- func (m *LookRequest) Reset()
- func (m *LookRequest) Size() (n int)
- func (this *LookRequest) String() string
- func (m *LookRequest) Unmarshal(dAtA []byte) error
- func (m *LookRequest) XXX_DiscardUnknown()
- func (m *LookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LookRequest) XXX_Merge(src proto.Message)
- func (m *LookRequest) XXX_Size() int
- func (m *LookRequest) XXX_Unmarshal(b []byte) error
- type LookResponse
- func (*LookResponse) Descriptor() ([]byte, []int)
- func (this *LookResponse) Equal(that interface{}) bool
- func (m *LookResponse) GetNewFigure() string
- func (m *LookResponse) GetNewGender() string
- func (this *LookResponse) GoString() string
- func (m *LookResponse) Marshal() (dAtA []byte, err error)
- func (m *LookResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LookResponse) ProtoMessage()
- func (m *LookResponse) Reset()
- func (m *LookResponse) Size() (n int)
- func (this *LookResponse) String() string
- func (m *LookResponse) Unmarshal(dAtA []byte) error
- func (m *LookResponse) XXX_DiscardUnknown()
- func (m *LookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LookResponse) XXX_Merge(src proto.Message)
- func (m *LookResponse) XXX_Size() int
- func (m *LookResponse) XXX_Unmarshal(b []byte) error
- type MottoRequest
- func (*MottoRequest) Descriptor() ([]byte, []int)
- func (this *MottoRequest) Equal(that interface{}) bool
- func (m *MottoRequest) GetNewMotto() string
- func (this *MottoRequest) GoString() string
- func (m *MottoRequest) Marshal() (dAtA []byte, err error)
- func (m *MottoRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MottoRequest) ProtoMessage()
- func (m *MottoRequest) Reset()
- func (m *MottoRequest) Size() (n int)
- func (this *MottoRequest) String() string
- func (m *MottoRequest) Unmarshal(dAtA []byte) error
- func (m *MottoRequest) XXX_DiscardUnknown()
- func (m *MottoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MottoRequest) XXX_Merge(src proto.Message)
- func (m *MottoRequest) XXX_Size() int
- func (m *MottoRequest) XXX_Unmarshal(b []byte) error
- type MottoResponse
- func (*MottoResponse) Descriptor() ([]byte, []int)
- func (this *MottoResponse) Equal(that interface{}) bool
- func (m *MottoResponse) GetNewMotto() string
- func (m *MottoResponse) GetSuccessful() bool
- func (this *MottoResponse) GoString() string
- func (m *MottoResponse) Marshal() (dAtA []byte, err error)
- func (m *MottoResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MottoResponse) ProtoMessage()
- func (m *MottoResponse) Reset()
- func (m *MottoResponse) Size() (n int)
- func (this *MottoResponse) String() string
- func (m *MottoResponse) Unmarshal(dAtA []byte) error
- func (m *MottoResponse) XXX_DiscardUnknown()
- func (m *MottoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MottoResponse) XXX_Merge(src proto.Message)
- func (m *MottoResponse) XXX_Size() int
- func (m *MottoResponse) XXX_Unmarshal(b []byte) error
- type NameError
- type NameRequest
- func (*NameRequest) Descriptor() ([]byte, []int)
- func (this *NameRequest) Equal(that interface{}) bool
- func (m *NameRequest) GetNewName() string
- func (this *NameRequest) GoString() string
- func (m *NameRequest) Marshal() (dAtA []byte, err error)
- func (m *NameRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NameRequest) ProtoMessage()
- func (m *NameRequest) Reset()
- func (m *NameRequest) Size() (n int)
- func (this *NameRequest) String() string
- func (m *NameRequest) Unmarshal(dAtA []byte) error
- func (m *NameRequest) XXX_DiscardUnknown()
- func (m *NameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NameRequest) XXX_Merge(src proto.Message)
- func (m *NameRequest) XXX_Size() int
- func (m *NameRequest) XXX_Unmarshal(b []byte) error
- type NameResponse
- func (*NameResponse) Descriptor() ([]byte, []int)
- func (this *NameResponse) Equal(that interface{}) bool
- func (m *NameResponse) GetError() NameError
- func (m *NameResponse) GetOk() bool
- func (this *NameResponse) GoString() string
- func (m *NameResponse) Marshal() (dAtA []byte, err error)
- func (m *NameResponse) MarshalTo(dAtA []byte) (int, error)
- func (*NameResponse) ProtoMessage()
- func (m *NameResponse) Reset()
- func (m *NameResponse) Size() (n int)
- func (this *NameResponse) String() string
- func (m *NameResponse) Unmarshal(dAtA []byte) error
- func (m *NameResponse) XXX_DiscardUnknown()
- func (m *NameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NameResponse) XXX_Merge(src proto.Message)
- func (m *NameResponse) XXX_Size() int
- func (m *NameResponse) XXX_Unmarshal(b []byte) error
- type PasswordResponse
- func (*PasswordResponse) Descriptor() ([]byte, []int)
- func (this *PasswordResponse) Equal(that interface{}) bool
- func (m *PasswordResponse) GetError() HashingError
- func (m *PasswordResponse) GetOk() bool
- func (this *PasswordResponse) GoString() string
- func (m *PasswordResponse) Marshal() (dAtA []byte, err error)
- func (m *PasswordResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PasswordResponse) ProtoMessage()
- func (m *PasswordResponse) Reset()
- func (m *PasswordResponse) Size() (n int)
- func (this *PasswordResponse) String() string
- func (m *PasswordResponse) Unmarshal(dAtA []byte) error
- func (m *PasswordResponse) XXX_DiscardUnknown()
- func (m *PasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PasswordResponse) XXX_Merge(src proto.Message)
- func (m *PasswordResponse) XXX_Size() int
- func (m *PasswordResponse) XXX_Unmarshal(b []byte) error
- type Player
- type PlayerActor
- type PlayerGrain
- func (g *PlayerGrain) ChangeLook(r *LookRequest) (*LookResponse, error)
- func (g *PlayerGrain) ChangeLookChan(r *LookRequest) (<-chan *LookResponse, <-chan error)
- func (g *PlayerGrain) ChangeLookChanWithOpts(r *LookRequest, opts *cluster.GrainCallOptions) (<-chan *LookResponse, <-chan error)
- func (g *PlayerGrain) ChangeLookWithOpts(r *LookRequest, opts *cluster.GrainCallOptions) (*LookResponse, error)
- func (g *PlayerGrain) ChangeMotto(r *MottoRequest) (*MottoResponse, error)
- func (g *PlayerGrain) ChangeMottoChan(r *MottoRequest) (<-chan *MottoResponse, <-chan error)
- func (g *PlayerGrain) ChangeMottoChanWithOpts(r *MottoRequest, opts *cluster.GrainCallOptions) (<-chan *MottoResponse, <-chan error)
- func (g *PlayerGrain) ChangeMottoWithOpts(r *MottoRequest, opts *cluster.GrainCallOptions) (*MottoResponse, error)
- func (g *PlayerGrain) ChangeName(r *NameRequest) (*NameResponse, error)
- func (g *PlayerGrain) ChangeNameChan(r *NameRequest) (<-chan *NameResponse, <-chan error)
- func (g *PlayerGrain) ChangeNameChanWithOpts(r *NameRequest, opts *cluster.GrainCallOptions) (<-chan *NameResponse, <-chan error)
- func (g *PlayerGrain) ChangeNameWithOpts(r *NameRequest, opts *cluster.GrainCallOptions) (*NameResponse, error)
- func (g *PlayerGrain) ChangePassword(r *ChangePasswordRequest) (*PasswordResponse, error)
- func (g *PlayerGrain) ChangePasswordChan(r *ChangePasswordRequest) (<-chan *PasswordResponse, <-chan error)
- func (g *PlayerGrain) ChangePasswordChanWithOpts(r *ChangePasswordRequest, opts *cluster.GrainCallOptions) (<-chan *PasswordResponse, <-chan error)
- func (g *PlayerGrain) ChangePasswordWithOpts(r *ChangePasswordRequest, opts *cluster.GrainCallOptions) (*PasswordResponse, error)
- func (g *PlayerGrain) CompareHash(r *CompareHashRequest) (*CompareHashResponse, error)
- func (g *PlayerGrain) CompareHashChan(r *CompareHashRequest) (<-chan *CompareHashResponse, <-chan error)
- func (g *PlayerGrain) CompareHashChanWithOpts(r *CompareHashRequest, opts *cluster.GrainCallOptions) (<-chan *CompareHashResponse, <-chan error)
- func (g *PlayerGrain) CompareHashWithOpts(r *CompareHashRequest, opts *cluster.GrainCallOptions) (*CompareHashResponse, error)
- func (g *PlayerGrain) DecreaseCurrency(r *CurrencyRequest) (*CurrencyResponse, error)
- func (g *PlayerGrain) DecreaseCurrencyChan(r *CurrencyRequest) (<-chan *CurrencyResponse, <-chan error)
- func (g *PlayerGrain) DecreaseCurrencyChanWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (<-chan *CurrencyResponse, <-chan error)
- func (g *PlayerGrain) DecreaseCurrencyWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (*CurrencyResponse, error)
- func (g *PlayerGrain) IncreaseCurrency(r *CurrencyRequest) (*CurrencyResponse, error)
- func (g *PlayerGrain) IncreaseCurrencyChan(r *CurrencyRequest) (<-chan *CurrencyResponse, <-chan error)
- func (g *PlayerGrain) IncreaseCurrencyChanWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (<-chan *CurrencyResponse, <-chan error)
- func (g *PlayerGrain) IncreaseCurrencyWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (*CurrencyResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthProtos = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProtos = fmt.Errorf("proto: integer overflow") )
var CurrencyType_name = map[int32]string{
0: "CREDITS",
1: "TICKETS",
2: "FILM",
3: "PIXELS",
4: "DUCKETS",
5: "RESPECT",
}
var CurrencyType_value = map[string]int32{
"CREDITS": 0,
"TICKETS": 1,
"FILM": 2,
"PIXELS": 3,
"DUCKETS": 4,
"RESPECT": 5,
}
var EntityType_name = map[int32]string{
0: "PLAYER",
1: "DOG",
2: "CAT",
3: "CROCODILE",
}
var EntityType_value = map[string]int32{
"PLAYER": 0,
"DOG": 1,
"CAT": 2,
"CROCODILE": 3,
}
var HashingError_name = map[int32]string{
0: "RESOURCES_EXHAUSTED",
1: "TOO_MANY_ATTEMPTS",
}
var HashingError_value = map[string]int32{
"RESOURCES_EXHAUSTED": 0,
"TOO_MANY_ATTEMPTS": 1,
}
var NameError_name = map[int32]string{
0: "TAKEN",
1: "NOT_ALLOWED",
}
var NameError_value = map[string]int32{
"TAKEN": 0,
"NOT_ALLOWED": 1,
}
Functions ¶
Types ¶
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` }
func (*ChangePasswordRequest) Descriptor ¶
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
func (*ChangePasswordRequest) Equal ¶
func (this *ChangePasswordRequest) Equal(that interface{}) bool
func (*ChangePasswordRequest) GetCurrentPassword ¶
func (m *ChangePasswordRequest) GetCurrentPassword() string
func (*ChangePasswordRequest) GetNewPassword ¶
func (m *ChangePasswordRequest) GetNewPassword() string
func (*ChangePasswordRequest) GoString ¶
func (this *ChangePasswordRequest) GoString() string
func (*ChangePasswordRequest) Marshal ¶
func (m *ChangePasswordRequest) Marshal() (dAtA []byte, err error)
func (*ChangePasswordRequest) MarshalTo ¶
func (m *ChangePasswordRequest) MarshalTo(dAtA []byte) (int, error)
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) Reset ¶
func (m *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) Size ¶
func (m *ChangePasswordRequest) Size() (n int)
func (*ChangePasswordRequest) String ¶
func (this *ChangePasswordRequest) String() string
func (*ChangePasswordRequest) Unmarshal ¶
func (m *ChangePasswordRequest) Unmarshal(dAtA []byte) error
func (*ChangePasswordRequest) XXX_DiscardUnknown ¶
func (m *ChangePasswordRequest) XXX_DiscardUnknown()
func (*ChangePasswordRequest) XXX_Marshal ¶
func (m *ChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangePasswordRequest) XXX_Merge ¶
func (m *ChangePasswordRequest) XXX_Merge(src proto.Message)
func (*ChangePasswordRequest) XXX_Size ¶
func (m *ChangePasswordRequest) XXX_Size() int
func (*ChangePasswordRequest) XXX_Unmarshal ¶
func (m *ChangePasswordRequest) XXX_Unmarshal(b []byte) error
type CompareHashRequest ¶
type CompareHashRequest struct {
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
}
func (*CompareHashRequest) Descriptor ¶
func (*CompareHashRequest) Descriptor() ([]byte, []int)
func (*CompareHashRequest) Equal ¶
func (this *CompareHashRequest) Equal(that interface{}) bool
func (*CompareHashRequest) GetPassword ¶
func (m *CompareHashRequest) GetPassword() string
func (*CompareHashRequest) GoString ¶
func (this *CompareHashRequest) GoString() string
func (*CompareHashRequest) Marshal ¶
func (m *CompareHashRequest) Marshal() (dAtA []byte, err error)
func (*CompareHashRequest) MarshalTo ¶
func (m *CompareHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*CompareHashRequest) ProtoMessage ¶
func (*CompareHashRequest) ProtoMessage()
func (*CompareHashRequest) Reset ¶
func (m *CompareHashRequest) Reset()
func (*CompareHashRequest) Size ¶
func (m *CompareHashRequest) Size() (n int)
func (*CompareHashRequest) String ¶
func (this *CompareHashRequest) String() string
func (*CompareHashRequest) Unmarshal ¶
func (m *CompareHashRequest) Unmarshal(dAtA []byte) error
func (*CompareHashRequest) XXX_DiscardUnknown ¶
func (m *CompareHashRequest) XXX_DiscardUnknown()
func (*CompareHashRequest) XXX_Marshal ¶
func (m *CompareHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompareHashRequest) XXX_Merge ¶
func (m *CompareHashRequest) XXX_Merge(src proto.Message)
func (*CompareHashRequest) XXX_Size ¶
func (m *CompareHashRequest) XXX_Size() int
func (*CompareHashRequest) XXX_Unmarshal ¶
func (m *CompareHashRequest) XXX_Unmarshal(b []byte) error
type CompareHashResponse ¶
type CompareHashResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Error HashingError `protobuf:"varint,2,opt,name=error,proto3,enum=players.HashingError" json:"error,omitempty"` NeedsRehash bool `protobuf:"varint,3,opt,name=needs_rehash,json=needsRehash,proto3" json:"needs_rehash,omitempty"` }
func (*CompareHashResponse) Descriptor ¶
func (*CompareHashResponse) Descriptor() ([]byte, []int)
func (*CompareHashResponse) Equal ¶
func (this *CompareHashResponse) Equal(that interface{}) bool
func (*CompareHashResponse) GetError ¶
func (m *CompareHashResponse) GetError() HashingError
func (*CompareHashResponse) GetNeedsRehash ¶
func (m *CompareHashResponse) GetNeedsRehash() bool
func (*CompareHashResponse) GetValid ¶
func (m *CompareHashResponse) GetValid() bool
func (*CompareHashResponse) GoString ¶
func (this *CompareHashResponse) GoString() string
func (*CompareHashResponse) Marshal ¶
func (m *CompareHashResponse) Marshal() (dAtA []byte, err error)
func (*CompareHashResponse) MarshalTo ¶
func (m *CompareHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*CompareHashResponse) ProtoMessage ¶
func (*CompareHashResponse) ProtoMessage()
func (*CompareHashResponse) Reset ¶
func (m *CompareHashResponse) Reset()
func (*CompareHashResponse) Size ¶
func (m *CompareHashResponse) Size() (n int)
func (*CompareHashResponse) String ¶
func (this *CompareHashResponse) String() string
func (*CompareHashResponse) Unmarshal ¶
func (m *CompareHashResponse) Unmarshal(dAtA []byte) error
func (*CompareHashResponse) XXX_DiscardUnknown ¶
func (m *CompareHashResponse) XXX_DiscardUnknown()
func (*CompareHashResponse) XXX_Marshal ¶
func (m *CompareHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompareHashResponse) XXX_Merge ¶
func (m *CompareHashResponse) XXX_Merge(src proto.Message)
func (*CompareHashResponse) XXX_Size ¶
func (m *CompareHashResponse) XXX_Size() int
func (*CompareHashResponse) XXX_Unmarshal ¶
func (m *CompareHashResponse) XXX_Unmarshal(b []byte) error
type CurrencyRequest ¶
type CurrencyRequest struct { Amount uint32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` CurrencyType CurrencyType `protobuf:"varint,2,opt,name=currency_type,json=currencyType,proto3,enum=players.CurrencyType" json:"currency_type,omitempty"` }
func (*CurrencyRequest) Descriptor ¶
func (*CurrencyRequest) Descriptor() ([]byte, []int)
func (*CurrencyRequest) Equal ¶
func (this *CurrencyRequest) Equal(that interface{}) bool
func (*CurrencyRequest) GetAmount ¶
func (m *CurrencyRequest) GetAmount() uint32
func (*CurrencyRequest) GetCurrencyType ¶
func (m *CurrencyRequest) GetCurrencyType() CurrencyType
func (*CurrencyRequest) GoString ¶
func (this *CurrencyRequest) GoString() string
func (*CurrencyRequest) Marshal ¶
func (m *CurrencyRequest) Marshal() (dAtA []byte, err error)
func (*CurrencyRequest) ProtoMessage ¶
func (*CurrencyRequest) ProtoMessage()
func (*CurrencyRequest) Reset ¶
func (m *CurrencyRequest) Reset()
func (*CurrencyRequest) Size ¶
func (m *CurrencyRequest) Size() (n int)
func (*CurrencyRequest) String ¶
func (this *CurrencyRequest) String() string
func (*CurrencyRequest) Unmarshal ¶
func (m *CurrencyRequest) Unmarshal(dAtA []byte) error
func (*CurrencyRequest) XXX_DiscardUnknown ¶
func (m *CurrencyRequest) XXX_DiscardUnknown()
func (*CurrencyRequest) XXX_Marshal ¶
func (m *CurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyRequest) XXX_Merge ¶
func (m *CurrencyRequest) XXX_Merge(src proto.Message)
func (*CurrencyRequest) XXX_Size ¶
func (m *CurrencyRequest) XXX_Size() int
func (*CurrencyRequest) XXX_Unmarshal ¶
func (m *CurrencyRequest) XXX_Unmarshal(b []byte) error
type CurrencyResponse ¶
type CurrencyResponse struct { NewAmount uint32 `protobuf:"varint,1,opt,name=new_amount,json=newAmount,proto3" json:"new_amount,omitempty"` CurrencyType CurrencyType `protobuf:"varint,2,opt,name=currency_type,json=currencyType,proto3,enum=players.CurrencyType" json:"currency_type,omitempty"` }
func (*CurrencyResponse) Descriptor ¶
func (*CurrencyResponse) Descriptor() ([]byte, []int)
func (*CurrencyResponse) Equal ¶
func (this *CurrencyResponse) Equal(that interface{}) bool
func (*CurrencyResponse) GetCurrencyType ¶
func (m *CurrencyResponse) GetCurrencyType() CurrencyType
func (*CurrencyResponse) GetNewAmount ¶
func (m *CurrencyResponse) GetNewAmount() uint32
func (*CurrencyResponse) GoString ¶
func (this *CurrencyResponse) GoString() string
func (*CurrencyResponse) Marshal ¶
func (m *CurrencyResponse) Marshal() (dAtA []byte, err error)
func (*CurrencyResponse) ProtoMessage ¶
func (*CurrencyResponse) ProtoMessage()
func (*CurrencyResponse) Reset ¶
func (m *CurrencyResponse) Reset()
func (*CurrencyResponse) Size ¶
func (m *CurrencyResponse) Size() (n int)
func (*CurrencyResponse) String ¶
func (this *CurrencyResponse) String() string
func (*CurrencyResponse) Unmarshal ¶
func (m *CurrencyResponse) Unmarshal(dAtA []byte) error
func (*CurrencyResponse) XXX_DiscardUnknown ¶
func (m *CurrencyResponse) XXX_DiscardUnknown()
func (*CurrencyResponse) XXX_Marshal ¶
func (m *CurrencyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyResponse) XXX_Merge ¶
func (m *CurrencyResponse) XXX_Merge(src proto.Message)
func (*CurrencyResponse) XXX_Size ¶
func (m *CurrencyResponse) XXX_Size() int
func (*CurrencyResponse) XXX_Unmarshal ¶
func (m *CurrencyResponse) XXX_Unmarshal(b []byte) error
type CurrencyType ¶
type CurrencyType int32
const ( CREDITS CurrencyType = 0 TICKETS CurrencyType = 1 FILM CurrencyType = 2 PIXELS CurrencyType = 3 DUCKETS CurrencyType = 4 RESPECT CurrencyType = 5 )
func (CurrencyType) EnumDescriptor ¶
func (CurrencyType) EnumDescriptor() ([]byte, []int)
func (CurrencyType) String ¶
func (x CurrencyType) String() string
type EntityType ¶
type EntityType int32
const ( PLAYER EntityType = 0 DOG EntityType = 1 CAT EntityType = 2 CROCODILE EntityType = 3 )
func (EntityType) EnumDescriptor ¶
func (EntityType) EnumDescriptor() ([]byte, []int)
func (EntityType) String ¶
func (x EntityType) String() string
type HashingError ¶
type HashingError int32
const ( RESOURCES_EXHAUSTED HashingError = 0 TOO_MANY_ATTEMPTS HashingError = 1 )
func (HashingError) EnumDescriptor ¶
func (HashingError) EnumDescriptor() ([]byte, []int)
func (HashingError) String ¶
func (x HashingError) String() string
type LookRequest ¶
type LookRequest struct { Gender string `protobuf:"bytes,1,opt,name=gender,proto3" json:"gender,omitempty"` Figure string `protobuf:"bytes,2,opt,name=figure,proto3" json:"figure,omitempty"` EntityType EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=players.EntityType" json:"entity_type,omitempty"` }
func (*LookRequest) Descriptor ¶
func (*LookRequest) Descriptor() ([]byte, []int)
func (*LookRequest) Equal ¶
func (this *LookRequest) Equal(that interface{}) bool
func (*LookRequest) GetEntityType ¶
func (m *LookRequest) GetEntityType() EntityType
func (*LookRequest) GetFigure ¶
func (m *LookRequest) GetFigure() string
func (*LookRequest) GetGender ¶
func (m *LookRequest) GetGender() string
func (*LookRequest) GoString ¶
func (this *LookRequest) GoString() string
func (*LookRequest) Marshal ¶
func (m *LookRequest) Marshal() (dAtA []byte, err error)
func (*LookRequest) ProtoMessage ¶
func (*LookRequest) ProtoMessage()
func (*LookRequest) Reset ¶
func (m *LookRequest) Reset()
func (*LookRequest) Size ¶
func (m *LookRequest) Size() (n int)
func (*LookRequest) String ¶
func (this *LookRequest) String() string
func (*LookRequest) Unmarshal ¶
func (m *LookRequest) Unmarshal(dAtA []byte) error
func (*LookRequest) XXX_DiscardUnknown ¶
func (m *LookRequest) XXX_DiscardUnknown()
func (*LookRequest) XXX_Marshal ¶
func (m *LookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookRequest) XXX_Merge ¶
func (m *LookRequest) XXX_Merge(src proto.Message)
func (*LookRequest) XXX_Size ¶
func (m *LookRequest) XXX_Size() int
func (*LookRequest) XXX_Unmarshal ¶
func (m *LookRequest) XXX_Unmarshal(b []byte) error
type LookResponse ¶
type LookResponse struct { NewGender string `protobuf:"bytes,1,opt,name=new_gender,json=newGender,proto3" json:"new_gender,omitempty"` NewFigure string `protobuf:"bytes,2,opt,name=new_figure,json=newFigure,proto3" json:"new_figure,omitempty"` }
func (*LookResponse) Descriptor ¶
func (*LookResponse) Descriptor() ([]byte, []int)
func (*LookResponse) Equal ¶
func (this *LookResponse) Equal(that interface{}) bool
func (*LookResponse) GetNewFigure ¶
func (m *LookResponse) GetNewFigure() string
func (*LookResponse) GetNewGender ¶
func (m *LookResponse) GetNewGender() string
func (*LookResponse) GoString ¶
func (this *LookResponse) GoString() string
func (*LookResponse) Marshal ¶
func (m *LookResponse) Marshal() (dAtA []byte, err error)
func (*LookResponse) ProtoMessage ¶
func (*LookResponse) ProtoMessage()
func (*LookResponse) Reset ¶
func (m *LookResponse) Reset()
func (*LookResponse) Size ¶
func (m *LookResponse) Size() (n int)
func (*LookResponse) String ¶
func (this *LookResponse) String() string
func (*LookResponse) Unmarshal ¶
func (m *LookResponse) Unmarshal(dAtA []byte) error
func (*LookResponse) XXX_DiscardUnknown ¶
func (m *LookResponse) XXX_DiscardUnknown()
func (*LookResponse) XXX_Marshal ¶
func (m *LookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookResponse) XXX_Merge ¶
func (m *LookResponse) XXX_Merge(src proto.Message)
func (*LookResponse) XXX_Size ¶
func (m *LookResponse) XXX_Size() int
func (*LookResponse) XXX_Unmarshal ¶
func (m *LookResponse) XXX_Unmarshal(b []byte) error
type MottoRequest ¶
type MottoRequest struct {
NewMotto string `protobuf:"bytes,1,opt,name=new_motto,json=newMotto,proto3" json:"new_motto,omitempty"`
}
func (*MottoRequest) Descriptor ¶
func (*MottoRequest) Descriptor() ([]byte, []int)
func (*MottoRequest) Equal ¶
func (this *MottoRequest) Equal(that interface{}) bool
func (*MottoRequest) GetNewMotto ¶
func (m *MottoRequest) GetNewMotto() string
func (*MottoRequest) GoString ¶
func (this *MottoRequest) GoString() string
func (*MottoRequest) Marshal ¶
func (m *MottoRequest) Marshal() (dAtA []byte, err error)
func (*MottoRequest) ProtoMessage ¶
func (*MottoRequest) ProtoMessage()
func (*MottoRequest) Reset ¶
func (m *MottoRequest) Reset()
func (*MottoRequest) Size ¶
func (m *MottoRequest) Size() (n int)
func (*MottoRequest) String ¶
func (this *MottoRequest) String() string
func (*MottoRequest) Unmarshal ¶
func (m *MottoRequest) Unmarshal(dAtA []byte) error
func (*MottoRequest) XXX_DiscardUnknown ¶
func (m *MottoRequest) XXX_DiscardUnknown()
func (*MottoRequest) XXX_Marshal ¶
func (m *MottoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MottoRequest) XXX_Merge ¶
func (m *MottoRequest) XXX_Merge(src proto.Message)
func (*MottoRequest) XXX_Size ¶
func (m *MottoRequest) XXX_Size() int
func (*MottoRequest) XXX_Unmarshal ¶
func (m *MottoRequest) XXX_Unmarshal(b []byte) error
type MottoResponse ¶
type MottoResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` NewMotto string `protobuf:"bytes,2,opt,name=new_motto,json=newMotto,proto3" json:"new_motto,omitempty"` }
func (*MottoResponse) Descriptor ¶
func (*MottoResponse) Descriptor() ([]byte, []int)
func (*MottoResponse) Equal ¶
func (this *MottoResponse) Equal(that interface{}) bool
func (*MottoResponse) GetNewMotto ¶
func (m *MottoResponse) GetNewMotto() string
func (*MottoResponse) GetSuccessful ¶
func (m *MottoResponse) GetSuccessful() bool
func (*MottoResponse) GoString ¶
func (this *MottoResponse) GoString() string
func (*MottoResponse) Marshal ¶
func (m *MottoResponse) Marshal() (dAtA []byte, err error)
func (*MottoResponse) ProtoMessage ¶
func (*MottoResponse) ProtoMessage()
func (*MottoResponse) Reset ¶
func (m *MottoResponse) Reset()
func (*MottoResponse) Size ¶
func (m *MottoResponse) Size() (n int)
func (*MottoResponse) String ¶
func (this *MottoResponse) String() string
func (*MottoResponse) Unmarshal ¶
func (m *MottoResponse) Unmarshal(dAtA []byte) error
func (*MottoResponse) XXX_DiscardUnknown ¶
func (m *MottoResponse) XXX_DiscardUnknown()
func (*MottoResponse) XXX_Marshal ¶
func (m *MottoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MottoResponse) XXX_Merge ¶
func (m *MottoResponse) XXX_Merge(src proto.Message)
func (*MottoResponse) XXX_Size ¶
func (m *MottoResponse) XXX_Size() int
func (*MottoResponse) XXX_Unmarshal ¶
func (m *MottoResponse) XXX_Unmarshal(b []byte) error
type NameRequest ¶
type NameRequest struct {
NewName string `protobuf:"bytes,1,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
}
func (*NameRequest) Descriptor ¶
func (*NameRequest) Descriptor() ([]byte, []int)
func (*NameRequest) Equal ¶
func (this *NameRequest) Equal(that interface{}) bool
func (*NameRequest) GetNewName ¶
func (m *NameRequest) GetNewName() string
func (*NameRequest) GoString ¶
func (this *NameRequest) GoString() string
func (*NameRequest) Marshal ¶
func (m *NameRequest) Marshal() (dAtA []byte, err error)
func (*NameRequest) ProtoMessage ¶
func (*NameRequest) ProtoMessage()
func (*NameRequest) Reset ¶
func (m *NameRequest) Reset()
func (*NameRequest) Size ¶
func (m *NameRequest) Size() (n int)
func (*NameRequest) String ¶
func (this *NameRequest) String() string
func (*NameRequest) Unmarshal ¶
func (m *NameRequest) Unmarshal(dAtA []byte) error
func (*NameRequest) XXX_DiscardUnknown ¶
func (m *NameRequest) XXX_DiscardUnknown()
func (*NameRequest) XXX_Marshal ¶
func (m *NameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NameRequest) XXX_Merge ¶
func (m *NameRequest) XXX_Merge(src proto.Message)
func (*NameRequest) XXX_Size ¶
func (m *NameRequest) XXX_Size() int
func (*NameRequest) XXX_Unmarshal ¶
func (m *NameRequest) XXX_Unmarshal(b []byte) error
type NameResponse ¶
type NameResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Error NameError `protobuf:"varint,2,opt,name=error,proto3,enum=players.NameError" json:"error,omitempty"` }
func (*NameResponse) Descriptor ¶
func (*NameResponse) Descriptor() ([]byte, []int)
func (*NameResponse) Equal ¶
func (this *NameResponse) Equal(that interface{}) bool
func (*NameResponse) GetError ¶
func (m *NameResponse) GetError() NameError
func (*NameResponse) GetOk ¶
func (m *NameResponse) GetOk() bool
func (*NameResponse) GoString ¶
func (this *NameResponse) GoString() string
func (*NameResponse) Marshal ¶
func (m *NameResponse) Marshal() (dAtA []byte, err error)
func (*NameResponse) ProtoMessage ¶
func (*NameResponse) ProtoMessage()
func (*NameResponse) Reset ¶
func (m *NameResponse) Reset()
func (*NameResponse) Size ¶
func (m *NameResponse) Size() (n int)
func (*NameResponse) String ¶
func (this *NameResponse) String() string
func (*NameResponse) Unmarshal ¶
func (m *NameResponse) Unmarshal(dAtA []byte) error
func (*NameResponse) XXX_DiscardUnknown ¶
func (m *NameResponse) XXX_DiscardUnknown()
func (*NameResponse) XXX_Marshal ¶
func (m *NameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NameResponse) XXX_Merge ¶
func (m *NameResponse) XXX_Merge(src proto.Message)
func (*NameResponse) XXX_Size ¶
func (m *NameResponse) XXX_Size() int
func (*NameResponse) XXX_Unmarshal ¶
func (m *NameResponse) XXX_Unmarshal(b []byte) error
type PasswordResponse ¶
type PasswordResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Error HashingError `protobuf:"varint,2,opt,name=error,proto3,enum=players.HashingError" json:"error,omitempty"` }
func (*PasswordResponse) Descriptor ¶
func (*PasswordResponse) Descriptor() ([]byte, []int)
func (*PasswordResponse) Equal ¶
func (this *PasswordResponse) Equal(that interface{}) bool
func (*PasswordResponse) GetError ¶
func (m *PasswordResponse) GetError() HashingError
func (*PasswordResponse) GetOk ¶
func (m *PasswordResponse) GetOk() bool
func (*PasswordResponse) GoString ¶
func (this *PasswordResponse) GoString() string
func (*PasswordResponse) Marshal ¶
func (m *PasswordResponse) Marshal() (dAtA []byte, err error)
func (*PasswordResponse) ProtoMessage ¶
func (*PasswordResponse) ProtoMessage()
func (*PasswordResponse) Reset ¶
func (m *PasswordResponse) Reset()
func (*PasswordResponse) Size ¶
func (m *PasswordResponse) Size() (n int)
func (*PasswordResponse) String ¶
func (this *PasswordResponse) String() string
func (*PasswordResponse) Unmarshal ¶
func (m *PasswordResponse) Unmarshal(dAtA []byte) error
func (*PasswordResponse) XXX_DiscardUnknown ¶
func (m *PasswordResponse) XXX_DiscardUnknown()
func (*PasswordResponse) XXX_Marshal ¶
func (m *PasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PasswordResponse) XXX_Merge ¶
func (m *PasswordResponse) XXX_Merge(src proto.Message)
func (*PasswordResponse) XXX_Size ¶
func (m *PasswordResponse) XXX_Size() int
func (*PasswordResponse) XXX_Unmarshal ¶
func (m *PasswordResponse) XXX_Unmarshal(b []byte) error
type Player ¶
type Player interface { Init(id string) Terminate() CompareHash(*CompareHashRequest, cluster.GrainContext) (*CompareHashResponse, error) ChangeLook(*LookRequest, cluster.GrainContext) (*LookResponse, error) ChangeName(*NameRequest, cluster.GrainContext) (*NameResponse, error) ChangePassword(*ChangePasswordRequest, cluster.GrainContext) (*PasswordResponse, error) ChangeMotto(*MottoRequest, cluster.GrainContext) (*MottoResponse, error) IncreaseCurrency(*CurrencyRequest, cluster.GrainContext) (*CurrencyResponse, error) DecreaseCurrency(*CurrencyRequest, cluster.GrainContext) (*CurrencyResponse, error) }
Player interfaces the services available to the Player
type PlayerActor ¶
PlayerActor represents the actor structure
func (*PlayerActor) Receive ¶
func (a *PlayerActor) Receive(ctx actor.Context)
Receive ensures the lifecycle of the actor for the received message
type PlayerGrain ¶
type PlayerGrain struct {
ID string
}
PlayerGrain holds the base data for the PlayerGrain
func GetPlayerGrain ¶
func GetPlayerGrain(id string) *PlayerGrain
GetPlayerGrain instantiates a new PlayerGrain with given ID
func (*PlayerGrain) ChangeLook ¶
func (g *PlayerGrain) ChangeLook(r *LookRequest) (*LookResponse, error)
ChangeLook requests the execution on to the cluster using default options
func (*PlayerGrain) ChangeLookChan ¶
func (g *PlayerGrain) ChangeLookChan(r *LookRequest) (<-chan *LookResponse, <-chan error)
ChangeLookChan allows to use a channel to execute the method using default options
func (*PlayerGrain) ChangeLookChanWithOpts ¶
func (g *PlayerGrain) ChangeLookChanWithOpts(r *LookRequest, opts *cluster.GrainCallOptions) (<-chan *LookResponse, <-chan error)
ChangeLookChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) ChangeLookWithOpts ¶
func (g *PlayerGrain) ChangeLookWithOpts(r *LookRequest, opts *cluster.GrainCallOptions) (*LookResponse, error)
ChangeLookWithOpts requests the execution on to the cluster
func (*PlayerGrain) ChangeMotto ¶
func (g *PlayerGrain) ChangeMotto(r *MottoRequest) (*MottoResponse, error)
ChangeMotto requests the execution on to the cluster using default options
func (*PlayerGrain) ChangeMottoChan ¶
func (g *PlayerGrain) ChangeMottoChan(r *MottoRequest) (<-chan *MottoResponse, <-chan error)
ChangeMottoChan allows to use a channel to execute the method using default options
func (*PlayerGrain) ChangeMottoChanWithOpts ¶
func (g *PlayerGrain) ChangeMottoChanWithOpts(r *MottoRequest, opts *cluster.GrainCallOptions) (<-chan *MottoResponse, <-chan error)
ChangeMottoChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) ChangeMottoWithOpts ¶
func (g *PlayerGrain) ChangeMottoWithOpts(r *MottoRequest, opts *cluster.GrainCallOptions) (*MottoResponse, error)
ChangeMottoWithOpts requests the execution on to the cluster
func (*PlayerGrain) ChangeName ¶
func (g *PlayerGrain) ChangeName(r *NameRequest) (*NameResponse, error)
ChangeName requests the execution on to the cluster using default options
func (*PlayerGrain) ChangeNameChan ¶
func (g *PlayerGrain) ChangeNameChan(r *NameRequest) (<-chan *NameResponse, <-chan error)
ChangeNameChan allows to use a channel to execute the method using default options
func (*PlayerGrain) ChangeNameChanWithOpts ¶
func (g *PlayerGrain) ChangeNameChanWithOpts(r *NameRequest, opts *cluster.GrainCallOptions) (<-chan *NameResponse, <-chan error)
ChangeNameChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) ChangeNameWithOpts ¶
func (g *PlayerGrain) ChangeNameWithOpts(r *NameRequest, opts *cluster.GrainCallOptions) (*NameResponse, error)
ChangeNameWithOpts requests the execution on to the cluster
func (*PlayerGrain) ChangePassword ¶
func (g *PlayerGrain) ChangePassword(r *ChangePasswordRequest) (*PasswordResponse, error)
ChangePassword requests the execution on to the cluster using default options
func (*PlayerGrain) ChangePasswordChan ¶
func (g *PlayerGrain) ChangePasswordChan(r *ChangePasswordRequest) (<-chan *PasswordResponse, <-chan error)
ChangePasswordChan allows to use a channel to execute the method using default options
func (*PlayerGrain) ChangePasswordChanWithOpts ¶
func (g *PlayerGrain) ChangePasswordChanWithOpts(r *ChangePasswordRequest, opts *cluster.GrainCallOptions) (<-chan *PasswordResponse, <-chan error)
ChangePasswordChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) ChangePasswordWithOpts ¶
func (g *PlayerGrain) ChangePasswordWithOpts(r *ChangePasswordRequest, opts *cluster.GrainCallOptions) (*PasswordResponse, error)
ChangePasswordWithOpts requests the execution on to the cluster
func (*PlayerGrain) CompareHash ¶
func (g *PlayerGrain) CompareHash(r *CompareHashRequest) (*CompareHashResponse, error)
CompareHash requests the execution on to the cluster using default options
func (*PlayerGrain) CompareHashChan ¶
func (g *PlayerGrain) CompareHashChan(r *CompareHashRequest) (<-chan *CompareHashResponse, <-chan error)
CompareHashChan allows to use a channel to execute the method using default options
func (*PlayerGrain) CompareHashChanWithOpts ¶
func (g *PlayerGrain) CompareHashChanWithOpts(r *CompareHashRequest, opts *cluster.GrainCallOptions) (<-chan *CompareHashResponse, <-chan error)
CompareHashChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) CompareHashWithOpts ¶
func (g *PlayerGrain) CompareHashWithOpts(r *CompareHashRequest, opts *cluster.GrainCallOptions) (*CompareHashResponse, error)
CompareHashWithOpts requests the execution on to the cluster
func (*PlayerGrain) DecreaseCurrency ¶
func (g *PlayerGrain) DecreaseCurrency(r *CurrencyRequest) (*CurrencyResponse, error)
DecreaseCurrency requests the execution on to the cluster using default options
func (*PlayerGrain) DecreaseCurrencyChan ¶
func (g *PlayerGrain) DecreaseCurrencyChan(r *CurrencyRequest) (<-chan *CurrencyResponse, <-chan error)
DecreaseCurrencyChan allows to use a channel to execute the method using default options
func (*PlayerGrain) DecreaseCurrencyChanWithOpts ¶
func (g *PlayerGrain) DecreaseCurrencyChanWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (<-chan *CurrencyResponse, <-chan error)
DecreaseCurrencyChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) DecreaseCurrencyWithOpts ¶
func (g *PlayerGrain) DecreaseCurrencyWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (*CurrencyResponse, error)
DecreaseCurrencyWithOpts requests the execution on to the cluster
func (*PlayerGrain) IncreaseCurrency ¶
func (g *PlayerGrain) IncreaseCurrency(r *CurrencyRequest) (*CurrencyResponse, error)
IncreaseCurrency requests the execution on to the cluster using default options
func (*PlayerGrain) IncreaseCurrencyChan ¶
func (g *PlayerGrain) IncreaseCurrencyChan(r *CurrencyRequest) (<-chan *CurrencyResponse, <-chan error)
IncreaseCurrencyChan allows to use a channel to execute the method using default options
func (*PlayerGrain) IncreaseCurrencyChanWithOpts ¶
func (g *PlayerGrain) IncreaseCurrencyChanWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (<-chan *CurrencyResponse, <-chan error)
IncreaseCurrencyChanWithOpts allows to use a channel to execute the method
func (*PlayerGrain) IncreaseCurrencyWithOpts ¶
func (g *PlayerGrain) IncreaseCurrencyWithOpts(r *CurrencyRequest, opts *cluster.GrainCallOptions) (*CurrencyResponse, error)
IncreaseCurrencyWithOpts requests the execution on to the cluster