config

package
v0.0.0-...-aa46052 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	JwtSecretKey  string `json:"jwt_secret_key,omitempty"`
	TokenDuration string `json:"token_duration"`
}

type Config

type Config struct {
	Router        `json:"router,omitempty"`
	Authenticator `json:"authenticator,omitempty"`
	Database      `json:"database,omitempty"`
	Service       `json:"service,omitempty"`
	Crawler       `json:"crawler,omitempty"`
}

func Load

func Load() (*Config, error)

type Crawler

type Crawler struct {
	UserAgents []string `json:"user_agents,omitempty"`
	Interval   string   `json:"interval,omitempty"`
}

type Database

type Database struct {
	Type string `json:"type,omitempty"`
	DSN  string `json:"dsn,omitempty"`
}

type Router

type Router struct {
	ListeningPort int `json:"listening_port,omitempty"`
}

type Service

type Service struct {
	GoogleOauth2ClientID     string `json:"google_oauth2_client_id,omitempty"`
	GoogleOauth2ClientSecret string `json:"google_oauth2_client_secret,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL