Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBAddToken ¶
DBAddToken adds a token to the database
Types ¶
type Claims ¶
type Claims struct {
Id string
}
Claims implements jwt.Claims and holds the user ID embedded in the JWT
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module holds data for this module and implements the shodan.Module interface
func (*Module) GetIdentifier ¶
GetIdentifier returns the identifier for this module
type TokenInfo ¶
type TokenInfo struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` Scope string `json:"scope"` Error string `json:"error"` }
TokenInfo represents the data returned by the OAuth 2 token exchange
Click to show internal directories.
Click to hide internal directories.