Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the main struct of a client for Sbebank ID API.
func (*Client) AuthRequest ¶
AuthRequest performs logging to Sberbank's endpoint to fetch Auth code.
func (*Client) GetPersonalData ¶
func (c *Client) GetPersonalData(token *TokenResponse) (*PersonData, error)
GetPersonalData fetches customer personal data using TokenResponse.
type Config ¶
type Config struct { Scope string RedirectURL string Env Environment VerboseMode bool // contains filtered or unexported fields }
Config is a structure to keep instance parameters for httpClient requests.
type Environment ¶
type Environment int
Environment type.
const ( // EnvSandbox Sandbox environment. EnvSandbox Environment = 1 << iota // EnvDev DEV environment. EnvDev // EnvProd PROD environment. EnvProd )
type PersonData ¶
type PersonData map[string]interface{}
PersonData represents Personal Data response. JSON formatted.
type SberCredentials ¶
SberCredentials is a struct to store user credentials for Sberbank ID API.
Click to show internal directories.
Click to hide internal directories.