Documentation ¶
Index ¶
- func NewUserClient(secret string, magicClientId string, client *resty.Client) magic.User
- type Client
- func (u *Client) GetMetadataByIssuer(issuer string) (*magic.UserInfo, error)
- func (u *Client) GetMetadataByIssuerAndWallet(issuer string, walletType wallet.Type) (*magic.UserInfo, error)
- func (u *Client) GetMetadataByPublicAddress(pubAddr string) (*magic.UserInfo, error)
- func (u *Client) GetMetadataByPublicAddressAndWallet(pubAddr string, walletType wallet.Type) (*magic.UserInfo, error)
- func (u *Client) GetMetadataByToken(didToken string) (*magic.UserInfo, error)
- func (u *Client) GetMetadataByTokenAndWallet(didToken string, walletType wallet.Type) (*magic.UserInfo, error)
- func (u *Client) LogoutByIssuer(issuer string) error
- func (u *Client) LogoutByPublicAddress(pubAddr string) error
- func (u *Client) LogoutByToken(didToken string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserClient ¶
NewUserClient constructor of user client api.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetMetadataByIssuer ¶
GetMetadataByIssuer returns metadata by issuer.
func (*Client) GetMetadataByIssuerAndWallet ¶ added in v0.2.0
func (u *Client) GetMetadataByIssuerAndWallet(issuer string, walletType wallet.Type) (*magic.UserInfo, error)
GetMetadataByIssuerAndWallet returns metadata by issuer and wallet type.
func (*Client) GetMetadataByPublicAddress ¶
GetMetadataByPublicAddress returns metadata by public address.
func (*Client) GetMetadataByPublicAddressAndWallet ¶ added in v0.2.0
func (u *Client) GetMetadataByPublicAddressAndWallet(pubAddr string, walletType wallet.Type) (*magic.UserInfo, error)
GetMetadataByPublicAddressAndWallet returns metadata by public address and wallet type.
func (*Client) GetMetadataByToken ¶
GetMetadataByToken returns metadata by DID token with decoding and validating it.
func (*Client) GetMetadataByTokenAndWallet ¶ added in v0.2.0
func (u *Client) GetMetadataByTokenAndWallet(didToken string, walletType wallet.Type) (*magic.UserInfo, error)
GetMetadataByTokenAndWallet returns metadata by DID token with decoding and validating it.
func (*Client) LogoutByIssuer ¶
LogoutByIssuer logout user from magic.link service by issuer.
func (*Client) LogoutByPublicAddress ¶
LogoutByPublicAddress logout user from magic.link service by public address.
func (*Client) LogoutByToken ¶
LogoutByToken logout user from magic.link service by DID token with decoding and validating it.