package
Version:
v0.0.0-...-aa46052
Opens a new window with list of versions in this module.
Published: Mar 20, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Authenticator struct {
JwtSecretKey string `json:"jwt_secret_key,omitempty"`
TokenDuration string `json:"token_duration"`
}
type Config struct {
Router `json:"router,omitempty"`
Authenticator `json:"authenticator,omitempty"`
Database `json:"database,omitempty"`
Service `json:"service,omitempty"`
Crawler `json:"crawler,omitempty"`
}
type Crawler struct {
UserAgents []string `json:"user_agents,omitempty"`
Interval string `json:"interval,omitempty"`
}
type Database struct {
Type string `json:"type,omitempty"`
DSN string `json:"dsn,omitempty"`
}
type Router struct {
ListeningPort int `json:"listening_port,omitempty"`
}
type Service struct {
GoogleOauth2ClientID string `json:"google_oauth2_client_id,omitempty"`
GoogleOauth2ClientSecret string `json:"google_oauth2_client_secret,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.