protocol

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

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

View Source
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

Directories

Path Synopsis
Package types implements all the types used by the AccountManagement protocol
Package types implements all the types used by the AccountManagement protocol

Jump to

Keyboard shortcuts

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