Documentation
¶
Index ¶
- func FilterAuthorizationMaps(s []user.AuthorizationMap) []user.AuthorizationMap
- func FilterDigitalWallet(s []user.DigitalWalletAuthorization) []user.DigitalWalletAuthorization
- func FilterOwnerOf(s user.OwnerOf, verifiedEmails []user.EmailAddress) user.OwnerOf
- func UsersInterfaceRoutes(r *mux.Router, i UsersInterface)
- type Oauth2oauth_2_0Middleware
- type UsersAPI
- func (api UsersAPI) AddAPIKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) AddPublicKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) AddUserRegistryEntry(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) CreateUserBankAccount(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteAuthorization(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteEmailAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteFacebookAccount(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteGithubAccount(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeletePhonenumber(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeletePublicKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteUserBankAccount(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) DeleteUserRegistryEntry(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetAPIKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetAllAuthorizations(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetAuthorization(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetDigitalWallet(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetNotifications(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetPublicKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetTOTPSecret(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetTwoFAMethods(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUser(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserAddressByLabel(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserAddresses(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserBankAccountByLabel(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserBankAccounts(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserContracts(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserInformation(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserPhoneNumbers(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserPhonenumberByLabel(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) GetUserRegistryEntry(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) LeaveOrganization(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ListAPIKeys(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ListEmailAddresses(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ListPublicKeys(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ListUserRegistry(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) Post(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RegisterNewAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RegisterNewContract(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RegisterNewDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RegisterNewEmailAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RegisterNewPhonenumber(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) RemoveTOTP(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) SetupTOTP(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateAPIKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateAuthorization(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateEmailAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateName(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdatePassword(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdatePhonenumber(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdatePublicKey(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) UpdateUserBankAccount(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ValidateEmailAddress(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) ValidatePhoneNumber(w http.ResponseWriter, r *http.Request)
- func (api UsersAPI) VerifyPhoneNumber(w http.ResponseWriter, r *http.Request)
- type UsersInterface
- type Userview
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAuthorizationMaps ¶
func FilterAuthorizationMaps(s []user.AuthorizationMap) []user.AuthorizationMap
func FilterDigitalWallet ¶
func FilterDigitalWallet(s []user.DigitalWalletAuthorization) []user.DigitalWalletAuthorization
func FilterOwnerOf ¶ added in v0.9.8
func UsersInterfaceRoutes ¶
func UsersInterfaceRoutes(r *mux.Router, i UsersInterface)
UsersInterfaceRoutes is routing for /users root endpoint
Types ¶
type Oauth2oauth_2_0Middleware ¶
type Oauth2oauth_2_0Middleware struct {
security.OAuth2Middleware
}
Oauth2oauth_2_0Middleware is oauth2 middleware for oauth_2_0
type UsersAPI ¶
type UsersAPI struct { SmsService communication.SMSService PhonenumberValidationService *validation.IYOPhonenumberValidationService EmailService communication.EmailService EmailAddressValidationService *validation.IYOEmailAddressValidationService }
UsersAPI is the actual implementation of the /users api
func (UsersAPI) AddPublicKey ¶
func (api UsersAPI) AddPublicKey(w http.ResponseWriter, r *http.Request)
AddPublicKey Add a public key
func (UsersAPI) AddUserRegistryEntry ¶
func (api UsersAPI) AddUserRegistryEntry(w http.ResponseWriter, r *http.Request)
AddUserRegistryEntry is the handler for POST /users/{username}/registry Adds a RegistryEntry to the user's registry, if the key is already used, it is overwritten.
func (UsersAPI) CreateUserBankAccount ¶
func (api UsersAPI) CreateUserBankAccount(w http.ResponseWriter, r *http.Request)
CreateUserBankAccount is handler for POST /users/{username}/banks Create new bank account
func (UsersAPI) DeleteAPIKey ¶
func (api UsersAPI) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
func (UsersAPI) DeleteAddress ¶
func (api UsersAPI) DeleteAddress(w http.ResponseWriter, r *http.Request)
DeleteAddress is the handler for DELETE /users/{username}/addresses/{label} Removes an address
func (UsersAPI) DeleteAuthorization ¶
func (api UsersAPI) DeleteAuthorization(w http.ResponseWriter, r *http.Request)
DeleteAuthorization is the handler for DELETE /users/{username}/authorizations/{grantedTo} Remove the authorization for an organization, the granted organization will no longer have access the user's information.
func (UsersAPI) DeleteDigitalAssetAddress ¶
func (api UsersAPI) DeleteDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
DeleteDigitalAssetAddress is the handler for DELETE /users/{username}/digitalwallet/{label}
func (UsersAPI) DeleteEmailAddress ¶
func (api UsersAPI) DeleteEmailAddress(w http.ResponseWriter, r *http.Request)
DeleteEmailAddress is the handler for DELETE /users/{username}/emailaddresses/{label} Removes an email address
func (UsersAPI) DeleteFacebookAccount ¶
func (api UsersAPI) DeleteFacebookAccount(w http.ResponseWriter, r *http.Request)
DeleteFacebookAccount is the handler for DELETE /users/{username}/facebook Delete the associated facebook account
func (UsersAPI) DeleteGithubAccount ¶
func (api UsersAPI) DeleteGithubAccount(w http.ResponseWriter, r *http.Request)
DeleteGithubAccount is the handler for DELETE /users/{username}/github Delete the associated Github account.
func (UsersAPI) DeletePhonenumber ¶
func (api UsersAPI) DeletePhonenumber(w http.ResponseWriter, r *http.Request)
DeletePhonenumber is the handler for DELETE /users/{username}/phonenumbers/{label} Removes a phonenumber
func (UsersAPI) DeletePublicKey ¶
func (api UsersAPI) DeletePublicKey(w http.ResponseWriter, r *http.Request)
DeletePublicKey Deletes a public key
func (UsersAPI) DeleteUserBankAccount ¶
func (api UsersAPI) DeleteUserBankAccount(w http.ResponseWriter, r *http.Request)
DeleteUserBankAccount is handler for DELETE /users/{username}/banks/{label} Delete a BankAccount
func (UsersAPI) DeleteUserRegistryEntry ¶
func (api UsersAPI) DeleteUserRegistryEntry(w http.ResponseWriter, r *http.Request)
DeleteUserRegistryEntry is the handler for DELETE /users/{username}/registry/{key} Removes a RegistryEntry from the user's registry
func (UsersAPI) GetAllAuthorizations ¶
func (api UsersAPI) GetAllAuthorizations(w http.ResponseWriter, r *http.Request)
GetAllAuthorizations is the handler for GET /users/{username}/authorizations Get the list of authorizations.
func (UsersAPI) GetAuthorization ¶
func (api UsersAPI) GetAuthorization(w http.ResponseWriter, r *http.Request)
GetAuthorization is the handler for GET /users/{username}/authorizations/{grantedTo} Get the authorization for a specific organization.
func (UsersAPI) GetDigitalAssetAddress ¶
func (api UsersAPI) GetDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
GetDigitalAssetAddress It is handler for GET /users/{username}/digitalwallet/{label}
func (UsersAPI) GetDigitalWallet ¶
func (api UsersAPI) GetDigitalWallet(w http.ResponseWriter, r *http.Request)
GetDigitalWallet is handler for GET /users/{username}/digitalwallet
func (UsersAPI) GetNotifications ¶
func (api UsersAPI) GetNotifications(w http.ResponseWriter, r *http.Request)
GetNotifications is handler for GET /users/{username}/notifications Get the list of notifications, these are pending invitations or approvals
func (UsersAPI) GetPublicKey ¶
func (api UsersAPI) GetPublicKey(w http.ResponseWriter, r *http.Request)
GetPublicKey Get the public key associated with a label
func (UsersAPI) GetTOTPSecret ¶
func (api UsersAPI) GetTOTPSecret(w http.ResponseWriter, r *http.Request)
GetTOTPSecret is the handler for GET /users/{username}/totp/ Gets a new TOTP secret
func (UsersAPI) GetTwoFAMethods ¶
func (api UsersAPI) GetTwoFAMethods(w http.ResponseWriter, r *http.Request)
GetTwoFAMethods is the handler for GET /users/{username}/twofamethods Get the possible two factor authentication methods
func (UsersAPI) GetUser ¶
func (api UsersAPI) GetUser(w http.ResponseWriter, r *http.Request)
GetUser is handler for GET /users/{username}
func (UsersAPI) GetUserAddressByLabel ¶
func (api UsersAPI) GetUserAddressByLabel(w http.ResponseWriter, r *http.Request)
GetUserAddressByLabel is handler for GET /users/{username}/addresses/{label}
func (UsersAPI) GetUserAddresses ¶
func (api UsersAPI) GetUserAddresses(w http.ResponseWriter, r *http.Request)
GetUserAddresses is handler for GET /users/{username}/addresses
func (UsersAPI) GetUserBankAccountByLabel ¶
func (api UsersAPI) GetUserBankAccountByLabel(w http.ResponseWriter, r *http.Request)
GetUserBankAccountByLabel is handler for GET /users/{username}/banks/{label}
func (UsersAPI) GetUserBankAccounts ¶
func (api UsersAPI) GetUserBankAccounts(w http.ResponseWriter, r *http.Request)
GetUserBankAccounts It is handler for GET /users/{username}/banks
func (UsersAPI) GetUserContracts ¶
func (api UsersAPI) GetUserContracts(w http.ResponseWriter, r *http.Request)
GetUserContracts is handler for GET /users/{username}/contracts Get the contracts where the user is 1 of the parties. Order descending by date.
func (UsersAPI) GetUserInformation ¶
func (api UsersAPI) GetUserInformation(w http.ResponseWriter, r *http.Request)
GetUserInformation is the handler for GET /users/{username}/info
func (UsersAPI) GetUserPhoneNumbers ¶
func (api UsersAPI) GetUserPhoneNumbers(w http.ResponseWriter, r *http.Request)
GetUserPhoneNumbers is the handler for GET /users/{username}/phonenumbers
func (UsersAPI) GetUserPhonenumberByLabel ¶
func (api UsersAPI) GetUserPhonenumberByLabel(w http.ResponseWriter, r *http.Request)
GetUserPhonenumberByLabel is the handler for GET /users/{username}/phonenumbers/{label}
func (UsersAPI) GetUserRegistryEntry ¶
func (api UsersAPI) GetUserRegistryEntry(w http.ResponseWriter, r *http.Request)
GetUserRegistryEntry is the handler for GET /users/{username}/registry/{key} Get a RegistryEntry from the user's registry.
func (UsersAPI) LeaveOrganization ¶
func (api UsersAPI) LeaveOrganization(w http.ResponseWriter, r *http.Request)
LeaveOrganization is the handler for DELETE /users/{username}/organizations/{globalid}/leave Removes the user from an organization
func (UsersAPI) ListAPIKeys ¶
func (api UsersAPI) ListAPIKeys(w http.ResponseWriter, r *http.Request)
func (UsersAPI) ListEmailAddresses ¶
func (api UsersAPI) ListEmailAddresses(w http.ResponseWriter, r *http.Request)
ListEmailAddresses is the handler for GET /users/{username}/emailaddresses
func (UsersAPI) ListPublicKeys ¶
func (api UsersAPI) ListPublicKeys(w http.ResponseWriter, r *http.Request)
ListPublicKeys lists all public keys
func (UsersAPI) ListUserRegistry ¶
func (api UsersAPI) ListUserRegistry(w http.ResponseWriter, r *http.Request)
ListUserRegistry is the handler for GET /users/{username}/registry Lists the Registry entries
func (UsersAPI) Post ¶
func (api UsersAPI) Post(w http.ResponseWriter, r *http.Request)
It is handler for POST /users
func (UsersAPI) RegisterNewAddress ¶
func (api UsersAPI) RegisterNewAddress(w http.ResponseWriter, r *http.Request)
RegisterNewAddress is the handler for POST /users/{username}/addresses Register a new address
func (UsersAPI) RegisterNewContract ¶
func (api UsersAPI) RegisterNewContract(w http.ResponseWriter, r *http.Request)
RegisterNewContract is handler for GET /users/{username}/contracts
func (UsersAPI) RegisterNewDigitalAssetAddress ¶
func (api UsersAPI) RegisterNewDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
RegisterNewDigitalAssetAddress is the handler for POST /users/{username}/digitalwallet Register a new address
func (UsersAPI) RegisterNewEmailAddress ¶
func (api UsersAPI) RegisterNewEmailAddress(w http.ResponseWriter, r *http.Request)
RegisterNewEmailAddress is the handler for POST /users/{username}/emailaddresses Register a new email address
func (UsersAPI) RegisterNewPhonenumber ¶
func (api UsersAPI) RegisterNewPhonenumber(w http.ResponseWriter, r *http.Request)
RegisterNewPhonenumber is the handler for POST /users/{username}/phonenumbers Register a new phonenumber
func (UsersAPI) RemoveTOTP ¶
func (api UsersAPI) RemoveTOTP(w http.ResponseWriter, r *http.Request)
RemoveTOTP is the handler for DELETE /users/{username}/totp/ Removes TOTP authentication for this user, if possible.
func (UsersAPI) SetupTOTP ¶
func (api UsersAPI) SetupTOTP(w http.ResponseWriter, r *http.Request)
SetupTOTP is the handler for POST /users/{username}/totp/ Configures TOTP authentication for this user
func (UsersAPI) UpdateAPIKey ¶
func (api UsersAPI) UpdateAPIKey(w http.ResponseWriter, r *http.Request)
func (UsersAPI) UpdateAddress ¶
func (api UsersAPI) UpdateAddress(w http.ResponseWriter, r *http.Request)
UpdateAddress is the handler for PUT /users/{username}/addresses/{label} Update the label and/or value of an existing address.
func (UsersAPI) UpdateAuthorization ¶
func (api UsersAPI) UpdateAuthorization(w http.ResponseWriter, r *http.Request)
UpdateAuthorization is the handler for PUT /users/{username}/authorizations/{grantedTo} Modify which information an organization is able to see.
func (UsersAPI) UpdateDigitalAssetAddress ¶
func (api UsersAPI) UpdateDigitalAssetAddress(w http.ResponseWriter, r *http.Request)
UpdateDigitalAssetAddress is the handler for PUT /users/{username}/digitalwallet/{label} Update the label and/or value of an existing address.
func (UsersAPI) UpdateEmailAddress ¶
func (api UsersAPI) UpdateEmailAddress(w http.ResponseWriter, r *http.Request)
UpdateEmailAddress is the handler for PUT /users/{username}/emailaddresses/{label} Updates the label and/or value of an email address
func (UsersAPI) UpdateName ¶
func (api UsersAPI) UpdateName(w http.ResponseWriter, r *http.Request)
UpdateName is the handler for PUT /users/{username}/name
func (UsersAPI) UpdatePassword ¶
func (api UsersAPI) UpdatePassword(w http.ResponseWriter, r *http.Request)
UpdatePassword is the handler for PUT /users/{username}/password
func (UsersAPI) UpdatePhonenumber ¶
func (api UsersAPI) UpdatePhonenumber(w http.ResponseWriter, r *http.Request)
UpdatePhonenumber is the handler for PUT /users/{username}/phonenumbers/{label} Update the label and/or value of an existing phonenumber.
func (UsersAPI) UpdatePublicKey ¶
func (api UsersAPI) UpdatePublicKey(w http.ResponseWriter, r *http.Request)
UpdatePublicKey Update the label and/or value of an existing public key.
func (UsersAPI) UpdateUserBankAccount ¶
func (api UsersAPI) UpdateUserBankAccount(w http.ResponseWriter, r *http.Request)
UpdateUserBankAccount is handler for PUT /users/{username}/banks/{label} Update an existing bankaccount and label.
func (UsersAPI) ValidateEmailAddress ¶
func (api UsersAPI) ValidateEmailAddress(w http.ResponseWriter, r *http.Request)
Validate email address is the handler for GET /users/{username}/emailaddress/{label}/validate
func (UsersAPI) ValidatePhoneNumber ¶
func (api UsersAPI) ValidatePhoneNumber(w http.ResponseWriter, r *http.Request)
ValidatePhoneNumber is the handler for POST /users/{username}/phonenumbers/{label}/validate
func (UsersAPI) VerifyPhoneNumber ¶
func (api UsersAPI) VerifyPhoneNumber(w http.ResponseWriter, r *http.Request)
VerifyPhoneNumber is the handler for PUT /users/{username}/phonenumbers/{label}/validate
type UsersInterface ¶
type UsersInterface interface { // Create a new user Post(http.ResponseWriter, *http.Request) // UpdateName is the handler for PUT / users/{username}/name UpdateName(http.ResponseWriter, *http.Request) // UpdatePassword is the handler for PUT /users/{username}/password UpdatePassword(http.ResponseWriter, *http.Request) // GetUserPhoneNumbers is the handler for GET /users/{username}/phonenumbers GetUserPhoneNumbers(http.ResponseWriter, *http.Request) // RegisterNewPhonenumber is the handler for POST /users/{username}/phonenumbers // Register a new phonenumber RegisterNewPhonenumber(http.ResponseWriter, *http.Request) // ValidatePhoneNumber is the handler for POST /users/{username}/phonenumbers/{label}/validate // Send sms verification to phone number ValidatePhoneNumber(http.ResponseWriter, *http.Request) // VerifyPhoneNumber is the handler for PUT /users/{username}/phonenumbers/{label}/validate // Verifies a phone number VerifyPhoneNumber(http.ResponseWriter, *http.Request) // GetUserPhonenumberByLabel is the handler for GET /users/{username}/phonenumbers/{label} GetUserPhonenumberByLabel(http.ResponseWriter, *http.Request) // UpdatePhonenumber is the handler for PUT /users/{username}/phonenumbers/{label} // Update the label and/or value of an existing phonenumber. UpdatePhonenumber(http.ResponseWriter, *http.Request) // DeletePhonenumber is the handler for DELETE /users/{username}/phonenumbers/{label} // Removes a phonenumber DeletePhonenumber(http.ResponseWriter, *http.Request) // GetUserBankAccounts is the handler for GET /users/{username}/banks GetUserBankAccounts(http.ResponseWriter, *http.Request) // CreateUserBankAccount is the handler for POST /users/{username}/banks // Create new bank account CreateUserBankAccount(http.ResponseWriter, *http.Request) // GetNotifications is the handler for GET /users/{username}/notifications // Get the list of notifications, these are pending invitations or approvals GetNotifications(http.ResponseWriter, *http.Request) // GetUser is the handler for GET /users/{username} GetUser(http.ResponseWriter, *http.Request) // DeleteFacebookAccount is the handler for DELETE /users/{username}/facebook // Delete the associated facebook account DeleteFacebookAccount(http.ResponseWriter, *http.Request) // RegisterNewEmailAddress is the handler for POST /users/{username}/emailaddresses // Register a new email address RegisterNewEmailAddress(http.ResponseWriter, *http.Request) // UpdateEmailAddress is the handler for PUT /users/{username}/emailaddresses/{label} // Updates the label and/or value of an email address UpdateEmailAddress(http.ResponseWriter, *http.Request) // DeleteEmailAddress is the handler for DELETE /users/{username}/emailaddresses/{label} // Removes an email address DeleteEmailAddress(http.ResponseWriter, *http.Request) ValidateEmailAddress(http.ResponseWriter, *http.Request) ListEmailAddresses(http.ResponseWriter, *http.Request) // DeleteGithubAccount is the handler for DELETE /users/{username}/github // Unlink Github Account DeleteGithubAccount(http.ResponseWriter, *http.Request) // GetUserInformation is the handler for GET /users/{username}/info GetUserInformation(http.ResponseWriter, *http.Request) // GetUserAddresses is the handler for GET /users/{username}/addresses GetUserAddresses(http.ResponseWriter, *http.Request) // RegisterNewAddress is the handler for POST /users/{username}/addresses // Register a new address RegisterNewAddress(http.ResponseWriter, *http.Request) // GetUserAddressByLabel is the handler for GET /users/{username}/addresses/{label} GetUserAddressByLabel(http.ResponseWriter, *http.Request) // UpdateAddress is the handler for PUT /users/{username}/addresses/{label} // Update the label and/or value of an existing address. UpdateAddress(http.ResponseWriter, *http.Request) // DeleteAddress is the handler for DELETE /users/{username}/addresses/{label} // Removes an address DeleteAddress(http.ResponseWriter, *http.Request) // GetUserBankAccountByLabel is the handler for GET /users/{username}/banks/{label} GetUserBankAccountByLabel(http.ResponseWriter, *http.Request) // UpdateUserBankAccount is the handler for PUT /users/{username}/banks/{label} // Update an existing bankaccount and label. UpdateUserBankAccount(http.ResponseWriter, *http.Request) // DeleteUserBankAccount is the handler for DELETE /users/{username}/banks/{label} // Delete a BankAccount DeleteUserBankAccount(http.ResponseWriter, *http.Request) // GetUserContracts is the handler for GET /users/{username}/contracts // Get the contracts where the user is 1 of the parties. Order descending by date. GetUserContracts(http.ResponseWriter, *http.Request) // RegisterNewContract is the handler for POST /user/{username}/contracts RegisterNewContract(http.ResponseWriter, *http.Request) // GetAllAuthorizations is the handler for GET /users/{username}/authorizations // Get the list of authorizations. GetAllAuthorizations(http.ResponseWriter, *http.Request) // GetAuthorization is the handler for GET /users/{username}/authorizations/{grantedTo} // Get the authorization for a specific organization. GetAuthorization(http.ResponseWriter, *http.Request) // UpdateAuthorization is the handler for PUT /users/{username}/authorizations/{grantedTo} // Modify which information an organization is able to see. UpdateAuthorization(http.ResponseWriter, *http.Request) // DeleteAuthorization is the handler for DELETE /users/{username}/authorizations/{grantedTo} // Remove the authorization for an organization, the granted organization will no longer // have access the user's information. DeleteAuthorization(http.ResponseWriter, *http.Request) // AddAPIKey Add an API Key AddAPIKey(http.ResponseWriter, *http.Request) GetAPIKey(http.ResponseWriter, *http.Request) UpdateAPIKey(http.ResponseWriter, *http.Request) DeleteAPIKey(http.ResponseWriter, *http.Request) ListAPIKeys(http.ResponseWriter, *http.Request) // AddPublicKey Add a public key AddPublicKey(http.ResponseWriter, *http.Request) // GetPublicKey Get the public key associated with a label GetPublicKey(http.ResponseWriter, *http.Request) // UpdatePublicKey Updates the label and or key of an existing public key UpdatePublicKey(http.ResponseWriter, *http.Request) // DeletePublicKey Deletes a public key DeletePublicKey(http.ResponseWriter, *http.Request) // ListPublicKeys Lists all public keys ListPublicKeys(http.ResponseWriter, *http.Request) // GetTwoFAMethods is the handler for GET /users/{username}/twofamethods // Get the possible two factor authentication methods GetTwoFAMethods(http.ResponseWriter, *http.Request) // GetTOTPSecret is the handler for GET /users/{username}/totp GetTOTPSecret(http.ResponseWriter, *http.Request) // SetupTOTP is the handler for POST /users/{username}/totp SetupTOTP(http.ResponseWriter, *http.Request) // RemoveTOTP is the handler for DELETE /users/{username}/totp RemoveTOTP(http.ResponseWriter, *http.Request) GetDigitalWallet(http.ResponseWriter, *http.Request) RegisterNewDigitalAssetAddress(http.ResponseWriter, *http.Request) GetDigitalAssetAddress(http.ResponseWriter, *http.Request) UpdateDigitalAssetAddress(http.ResponseWriter, *http.Request) DeleteDigitalAssetAddress(http.ResponseWriter, *http.Request) // LeaveOrganization is the handler for DELETE /users/{username}/organizations/{globalid}/leave LeaveOrganization(http.ResponseWriter, *http.Request) // ListUserRegistry is the handler for GET /users/{username}/registry // Lists the Registry entries ListUserRegistry(http.ResponseWriter, *http.Request) // AddUserRegistryEntry is the handler for POST /users/{username}/registry // Adds a RegistryEntry to the user's registry, if the key is already used, it is overwritten. AddUserRegistryEntry(http.ResponseWriter, *http.Request) // GetUserRegistryEntry is the handler for GET /users/{username}/registry/{key} // Get a RegistryEntry from the user's registry. GetUserRegistryEntry(http.ResponseWriter, *http.Request) // DeleteUserRegistryEntry is the handler for DELETE /users/{username}/registry/{key} // Removes a RegistryEntry from the user's registry DeleteUserRegistryEntry(http.ResponseWriter, *http.Request) }
UsersInterface is interface for /users root endpoint
type Userview ¶
type Userview struct { Addresses []user.Address `json:"addresses"` BankAccounts []user.BankAccount `json:"bankaccounts"` DigitalWallet []user.DigitalAssetAddress `json:"bankaccounts"` EmailAddresses []user.EmailAddress `json:"emailaddresses"` Facebook user.FacebookAccount `json:"facebook"` Github user.GithubAccount `json:"github"` Organizations []string `json:"organizations"` Phonenumbers []user.Phonenumber `json:"phonenumbers"` PublicKeys []user.PublicKey `json:"publicKeys"` Username string `json:"username"` Firstname string `json:"firstname"` Lastname string `json:"lastname"` OwnerOf user.OwnerOf `json:"ownerof"` }