Documentation ¶
Overview ¶
Package protocol implements the Account Management protocol
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol ¶
Package protocol implements the Account Management protocol
Index ¶
- Constants
- type Interface
- type Protocol
- func (protocol *Protocol) Endpoint() nex.EndpointInterface
- func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
- func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)
- func (protocol *Protocol) SetHandlerChangePassword(...)
- func (protocol *Protocol) SetHandlerChangePasswordByGuest(...)
- func (protocol *Protocol) SetHandlerCreateAccount(...)
- func (protocol *Protocol) SetHandlerCreateAccountWithCustomData(...)
- func (protocol *Protocol) SetHandlerCustomCreateAccount(...)
- func (protocol *Protocol) SetHandlerDeleteAccount(...)
- func (protocol *Protocol) SetHandlerDisableAccount(...)
- func (protocol *Protocol) SetHandlerDisconnectAllPrincipals(...)
- func (protocol *Protocol) SetHandlerDisconnectPrincipal(...)
- func (protocol *Protocol) SetHandlerFindByNameLike(...)
- func (protocol *Protocol) SetHandlerFindByNameRegex(...)
- func (protocol *Protocol) SetHandlerGetAccountData(...)
- func (protocol *Protocol) SetHandlerGetLastConnectionStats(...)
- func (protocol *Protocol) SetHandlerGetMultiplePublicData(...)
- func (protocol *Protocol) SetHandlerGetName(...)
- func (protocol *Protocol) SetHandlerGetPrivateData(...)
- func (protocol *Protocol) SetHandlerGetPublicData(...)
- func (protocol *Protocol) SetHandlerGetStatus(...)
- func (protocol *Protocol) SetHandlerLookupOrCreateAccount(...)
- func (protocol *Protocol) SetHandlerNintendoCreateAccount(...)
- func (protocol *Protocol) SetHandlerResetPassword(...)
- func (protocol *Protocol) SetHandlerRetrieveAccount(...)
- func (protocol *Protocol) SetHandlerTestCapability(...)
- func (protocol *Protocol) SetHandlerUpdateAccount(...)
- func (protocol *Protocol) SetHandlerUpdateAccountEffectiveDate(...)
- func (protocol *Protocol) SetHandlerUpdateAccountEmail(...)
- func (protocol *Protocol) SetHandlerUpdateAccountExpiryDate(...)
- func (protocol *Protocol) SetHandlerUpdateAccountName(...)
- func (protocol *Protocol) SetHandlerUpdateCustomData(...)
- func (protocol *Protocol) SetHandlerUpdateStatus(...)
Constants ¶
const ( // ProtocolID is the protocol ID for the Account Management protocol ProtocolID = 0x19 // MethodCreateAccount is the method ID for method CreateAccount MethodCreateAccount = 0x1 // MethodDeleteAccount is the method ID for method DeleteAccount MethodDeleteAccount = 0x2 // MethodDisableAccount is the method ID for method DisableAccount MethodDisableAccount = 0x3 // MethodChangePassword is the method ID for method ChangePassword MethodChangePassword = 0x4 // MethodTestCapability is the method ID for method TestCapability MethodTestCapability = 0x5 // MethodGetName is the method ID for method GetName MethodGetName = 0x6 // MethodGetAccountData is the method ID for method GetAccountData MethodGetAccountData = 0x7 // MethodGetPrivateData is the method ID for method GetPrivateData MethodGetPrivateData = 0x8 // MethodGetPublicData is the method ID for method GetPublicData MethodGetPublicData = 0x9 // MethodGetMultiplePublicData is the method ID for method GetMultiplePublicData MethodGetMultiplePublicData = 0xA // MethodUpdateAccountName is the method ID for method UpdateAccountName MethodUpdateAccountName = 0xB // MethodUpdateAccountEmail is the method ID for method UpdateAccountEmail MethodUpdateAccountEmail = 0xC // MethodUpdateCustomData is the method ID for method UpdateCustomData MethodUpdateCustomData = 0xD // MethodFindByNameRegex is the method ID for method FindByNameRegex MethodFindByNameRegex = 0xE // MethodUpdateAccountExpiryDate is the method ID for method UpdateAccountExpiryDate MethodUpdateAccountExpiryDate = 0xF // MethodUpdateAccountEffectiveDate is the method ID for method UpdateAccountEffectiveDate MethodUpdateAccountEffectiveDate = 0x10 // MethodUpdateStatus is the method ID for method UpdateStatus MethodUpdateStatus = 0x11 // MethodGetStatus is the method ID for method GetStatus MethodGetStatus = 0x12 // MethodGetLastConnectionStats is the method ID for method GetLastConnectionStats MethodGetLastConnectionStats = 0x13 // MethodResetPassword is the method ID for method ResetPassword MethodResetPassword = 0x14 // MethodCreateAccountWithCustomData is the method ID for method CreateAccountWithCustomData MethodCreateAccountWithCustomData = 0x15 // MethodRetrieveAccount is the method ID for method RetrieveAccount MethodRetrieveAccount = 0x16 // MethodUpdateAccount is the method ID for method UpdateAccount MethodUpdateAccount = 0x17 // MethodChangePasswordByGuest is the method ID for method ChangePasswordByGuest MethodChangePasswordByGuest = 0x18 // MethodFindByNameLike is the method ID for method FindByNameLike MethodFindByNameLike = 0x19 // MethodCustomCreateAccount is the method ID for method CustomCreateAccount MethodCustomCreateAccount = 0x1A // MethodNintendoCreateAccount is the method ID for method NintendoCreateAccount MethodNintendoCreateAccount = 0x1B // MethodLookupOrCreateAccount is the method ID for method LookupOrCreateAccount MethodLookupOrCreateAccount = 0x1C // MethodDisconnectPrincipal is the method ID for method DisconnectPrincipal MethodDisconnectPrincipal = 0x1D // MethodDisconnectAllPrincipals is the method ID for method DisconnectAllPrincipals MethodDisconnectAllPrincipals = 0x1E )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Endpoint() nex.EndpointInterface SetEndpoint(endpoint nex.EndpointInterface) SetHandlerCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerDeleteAccount(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerDisableAccount(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtUntil *types.DateTime, strMessage *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerChangePassword(handler func(err error, packet nex.PacketInterface, callID uint32, strNewKey *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerTestCapability(handler func(err error, packet nex.PacketInterface, callID uint32, uiCapability *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error)) SetHandlerGetName(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerGetAccountData(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) SetHandlerGetPrivateData(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) SetHandlerGetPublicData(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerGetMultiplePublicData(handler func(err error, packet nex.PacketInterface, callID uint32, lstPrincipals *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateAccountName(handler func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateAccountEmail(handler func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateCustomData(handler func(err error, packet nex.PacketInterface, callID uint32, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerFindByNameRegex(handler func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strRegex *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateAccountExpiryDate(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtExpiry *types.DateTime, strExpiredMessage *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateAccountEffectiveDate(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtEffectiveFrom *types.DateTime, strNotEffectiveMessage *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateStatus(handler func(err error, packet nex.PacketInterface, callID uint32, strStatus *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerGetStatus(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerGetLastConnectionStats(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerResetPassword(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) SetHandlerCreateAccountWithCustomData(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerRetrieveAccount(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) SetHandlerUpdateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strKey *types.String, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerChangePasswordByGuest(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, strEmail *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerFindByNameLike(handler func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strLike *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error)) SetHandlerCustomCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerNintendoCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerLookupOrCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error)) SetHandlerDisconnectPrincipal(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error)) SetHandlerDisconnectAllPrincipals(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)) }
Interface implements the methods present on the Account Management Protocol struct
type Protocol ¶
type Protocol struct { CreateAccount func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String) (*nex.RMCMessage, *nex.Error) DeleteAccount func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) DisableAccount func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtUntil *types.DateTime, strMessage *types.String) (*nex.RMCMessage, *nex.Error) ChangePassword func(err error, packet nex.PacketInterface, callID uint32, strNewKey *types.String) (*nex.RMCMessage, *nex.Error) TestCapability func(err error, packet nex.PacketInterface, callID uint32, uiCapability *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error) GetName func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) GetAccountData func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) GetPrivateData func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) GetPublicData func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) GetMultiplePublicData func(err error, packet nex.PacketInterface, callID uint32, lstPrincipals *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) UpdateAccountName func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error) UpdateAccountEmail func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error) UpdateCustomData func(err error, packet nex.PacketInterface, callID uint32, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) FindByNameRegex func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strRegex *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error) UpdateAccountExpiryDate func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtExpiry *types.DateTime, strExpiredMessage *types.String) (*nex.RMCMessage, *nex.Error) UpdateAccountEffectiveDate func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtEffectiveFrom *types.DateTime, strNotEffectiveMessage *types.String) (*nex.RMCMessage, *nex.Error) UpdateStatus func(err error, packet nex.PacketInterface, callID uint32, strStatus *types.String) (*nex.RMCMessage, *nex.Error) GetStatus func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) GetLastConnectionStats func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) ResetPassword func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) CreateAccountWithCustomData func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) RetrieveAccount func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) UpdateAccount func(err error, packet nex.PacketInterface, callID uint32, strKey *types.String, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) ChangePasswordByGuest func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, strEmail *types.String) (*nex.RMCMessage, *nex.Error) FindByNameLike func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strLike *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error) CustomCreateAccount func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) NintendoCreateAccount func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) LookupOrCreateAccount func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error) DisconnectPrincipal func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error) DisconnectAllPrincipals func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) Patches nex.ServiceProtocol PatchedMethods []uint32 // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the Account Management protocol and listens for requests
func NewProtocol ¶
func NewProtocol() *Protocol
NewProtocol returns a new Account Management protocol
func (*Protocol) Endpoint ¶
func (protocol *Protocol) Endpoint() nex.EndpointInterface
Endpoint returns the endpoint implementing the protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
func (*Protocol) SetEndpoint ¶
func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)
SetEndpoint sets the endpoint implementing the protocol
func (*Protocol) SetHandlerChangePassword ¶
func (protocol *Protocol) SetHandlerChangePassword(handler func(err error, packet nex.PacketInterface, callID uint32, strNewKey *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerChangePassword sets the handler for the ChangePassword method
func (*Protocol) SetHandlerChangePasswordByGuest ¶
func (protocol *Protocol) SetHandlerChangePasswordByGuest(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, strEmail *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerChangePasswordByGuest sets the handler for the ChangePasswordByGuest method
func (*Protocol) SetHandlerCreateAccount ¶
func (protocol *Protocol) SetHandlerCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerCreateAccount sets the handler for the CreateAccount method
func (*Protocol) SetHandlerCreateAccountWithCustomData ¶
func (protocol *Protocol) SetHandlerCreateAccountWithCustomData(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerCreateAccountWithCustomData sets the handler for the CreateAccountWithCustomData method
func (*Protocol) SetHandlerCustomCreateAccount ¶
func (protocol *Protocol) SetHandlerCustomCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerCustomCreateAccount sets the handler for the CustomCreateAccount method
func (*Protocol) SetHandlerDeleteAccount ¶
func (protocol *Protocol) SetHandlerDeleteAccount(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerDeleteAccount sets the handler for the DeleteAccount method
func (*Protocol) SetHandlerDisableAccount ¶
func (protocol *Protocol) SetHandlerDisableAccount(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtUntil *types.DateTime, strMessage *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerDisableAccount sets the handler for the DisableAccount method
func (*Protocol) SetHandlerDisconnectAllPrincipals ¶
func (protocol *Protocol) SetHandlerDisconnectAllPrincipals(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerDisconnectAllPrincipals sets the handler for the DisconnectAllPrincipals method
func (*Protocol) SetHandlerDisconnectPrincipal ¶
func (protocol *Protocol) SetHandlerDisconnectPrincipal(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerDisconnectPrincipal sets the handler for the DisconnectPrincipal method
func (*Protocol) SetHandlerFindByNameLike ¶
func (protocol *Protocol) SetHandlerFindByNameLike(handler func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strLike *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error))
SetHandlerFindByNameLike sets the handler for the FindByNameLike method
func (*Protocol) SetHandlerFindByNameRegex ¶
func (protocol *Protocol) SetHandlerFindByNameRegex(handler func(err error, packet nex.PacketInterface, callID uint32, uiGroups *types.PrimitiveU32, strRegex *types.String, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error))
SetHandlerFindByNameRegex sets the handler for the FindByNameRegex method
func (*Protocol) SetHandlerGetAccountData ¶
func (protocol *Protocol) SetHandlerGetAccountData(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerGetAccountData sets the handler for the GetAccountData method
func (*Protocol) SetHandlerGetLastConnectionStats ¶
func (protocol *Protocol) SetHandlerGetLastConnectionStats(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerGetLastConnectionStats sets the handler for the GetLastConnectionStats method
func (*Protocol) SetHandlerGetMultiplePublicData ¶
func (protocol *Protocol) SetHandlerGetMultiplePublicData(handler func(err error, packet nex.PacketInterface, callID uint32, lstPrincipals *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetMultiplePublicData sets the handler for the GetMultiplePublicData method
func (*Protocol) SetHandlerGetName ¶
func (protocol *Protocol) SetHandlerGetName(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerGetName sets the handler for the GetName method
func (*Protocol) SetHandlerGetPrivateData ¶
func (protocol *Protocol) SetHandlerGetPrivateData(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerGetPrivateData sets the handler for the GetPrivateData method
func (*Protocol) SetHandlerGetPublicData ¶
func (protocol *Protocol) SetHandlerGetPublicData(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerGetPublicData sets the handler for the GetPublicData method
func (*Protocol) SetHandlerGetStatus ¶
func (protocol *Protocol) SetHandlerGetStatus(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerGetStatus sets the handler for the GetStatus method
func (*Protocol) SetHandlerLookupOrCreateAccount ¶
func (protocol *Protocol) SetHandlerLookupOrCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerLookupOrCreateAccount sets the handler for the LookupOrCreateAccount method
func (*Protocol) SetHandlerNintendoCreateAccount ¶
func (protocol *Protocol) SetHandlerNintendoCreateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strPrincipalName *types.String, strKey *types.String, uiGroups *types.PrimitiveU32, strEmail *types.String, oAuthData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerNintendoCreateAccount sets the handler for the NintendoCreateAccount method
func (*Protocol) SetHandlerResetPassword ¶
func (protocol *Protocol) SetHandlerResetPassword(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerResetPassword sets the handler for the ResetPassword method
func (*Protocol) SetHandlerRetrieveAccount ¶
func (protocol *Protocol) SetHandlerRetrieveAccount(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
SetHandlerRetrieveAccount sets the handler for the RetrieveAccount method
func (*Protocol) SetHandlerTestCapability ¶
func (protocol *Protocol) SetHandlerTestCapability(handler func(err error, packet nex.PacketInterface, callID uint32, uiCapability *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error))
SetHandlerTestCapability sets the handler for the TestCapability method
func (*Protocol) SetHandlerUpdateAccount ¶
func (protocol *Protocol) SetHandlerUpdateAccount(handler func(err error, packet nex.PacketInterface, callID uint32, strKey *types.String, strEmail *types.String, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateAccount sets the handler for the UpdateAccount method
func (*Protocol) SetHandlerUpdateAccountEffectiveDate ¶
func (protocol *Protocol) SetHandlerUpdateAccountEffectiveDate(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtEffectiveFrom *types.DateTime, strNotEffectiveMessage *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateAccountEffectiveDate sets the handler for the UpdateAccountEffectiveDate method
func (*Protocol) SetHandlerUpdateAccountEmail ¶
func (protocol *Protocol) SetHandlerUpdateAccountEmail(handler func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateAccountEmail sets the handler for the UpdateAccountEmail method
func (*Protocol) SetHandlerUpdateAccountExpiryDate ¶
func (protocol *Protocol) SetHandlerUpdateAccountExpiryDate(handler func(err error, packet nex.PacketInterface, callID uint32, idPrincipal *types.PID, dtExpiry *types.DateTime, strExpiredMessage *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateAccountExpiryDate sets the handler for the UpdateAccountExpiryDate method
func (*Protocol) SetHandlerUpdateAccountName ¶
func (protocol *Protocol) SetHandlerUpdateAccountName(handler func(err error, packet nex.PacketInterface, callID uint32, strName *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateAccountName sets the handler for the UpdateAccountName method
func (*Protocol) SetHandlerUpdateCustomData ¶
func (protocol *Protocol) SetHandlerUpdateCustomData(handler func(err error, packet nex.PacketInterface, callID uint32, oPublicData *types.AnyDataHolder, oPrivateData *types.AnyDataHolder) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateCustomData sets the handler for the UpdateCustomData method
func (*Protocol) SetHandlerUpdateStatus ¶
func (protocol *Protocol) SetHandlerUpdateStatus(handler func(err error, packet nex.PacketInterface, callID uint32, strStatus *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerUpdateStatus sets the handler for the UpdateStatus method
Source Files ¶
- change_password.go
- change_password_by_guest.go
- create_account.go
- create_account_with_custom_data.go
- custom_create_account.go
- delete_account.go
- disable_account.go
- disconnect_all_principals.go
- disconnect_principal.go
- find_by_name_like.go
- find_by_name_regex.go
- get_account_data.go
- get_last_connection_stats.go
- get_multiple_public_data.go
- get_name.go
- get_private_data.go
- get_public_data.go
- get_status.go
- lookup_or_create_account.go
- nintendo_create_account.go
- protocol.go
- reset_password.go
- retrieve_account.go
- test_capability.go
- update_account.go
- update_account_effective_date.go
- update_account_email.go
- update_account_expiry_date.go
- update_account_name.go
- update_custom_data.go
- update_status.go