package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: May 13, 2022
License: BSD-2-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Client struct {
ClientID string
JWT *JWT
}
Client holds the object of skatteverket
New creates a new instance of skatteverket
EnsureJWT ensure that a jwt is present and valid
type Error interface {
Error() string
}
Error interface
type Errors struct {
Detail []struct {
Loc []string `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
} `json:"detail"`
}
Errors is a general error reply
JWT holds the raw token, mutex lock and expiration dates
Valid checks if jwt token i valid of not
type JWTReply struct {
AccessToken string `json:"access_token" validate:"required"`
ExpiresIn int64 `json:"expires_in" validate:"required"`
TokenType string `json:"token_type" validate:"required"`
Scope string `json:"scope" validate:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.