config

package
v0.0.0-...-80e8cda Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                     string
	DatabaseUser             string
	DatabasePassword         string
	DatabaseHost             string
	DatabasePort             string
	DatabaseName             string
	DatabaseSSLMode          string
	StripeKey                string // stripe secret API Key
	StripeEndpointSecret     string // stripe endpoint webhook secret token
	StripePublishableKey     string // stripe publishable API key
	SmtpUser                 string
	SmtpPassword             string
	SmtpHost                 string
	AdminEmail               string
	SupportEmail             string // displayed on the site for support queries
	NoReplyEmail             string // used for transactional emails
	SessionKey               []byte
	JwtSigningKey            []byte
	Env                      string // either prod or dev, will disable https and few other bits
	JobsPerPage              int    // configures how many jobs are shown per page result
	DevelopersPerPage        int    // configures how many dev profiles are shown per page result
	CompaniesPerPage         int    // configures how many companies are shown per page result
	TwitterJobsToPost        int    // max number of jobs to post each day
	TwitterAccessToken       string
	TwitterAccessTokenSecret string
	TwitterClientKey         string
	TwitterClientSecret      string
	NewsletterJobsToSend     int
	CloudflareAPIToken       string
	CloudflareZoneTag        string
	CloudflareAPIEndpoint    string
	MachineToken             string
	TelegramAPIToken         string   // Telegram API Token used to integrate with site's Telegram channel
	TelegramChannelID        int64    // Telegram Channel ID used to integrate with site's Telegram channel
	FXAPIKey                 string   // FX rate api API Key to access recent FX data
	AvailableCurrencies      []string // currencies used throughout the site for salary compensation (post a job, salary filter FX, etc)
	AvailableSalaryBands     []int    // salary upper limits used in search to filter job by minimum salary
	SiteName                 string   // Job site name
	SiteJobCategory          string   // Job site category
	SiteHost                 string   // Job site hostname
	SiteGithub               string   // job site github project url (username+repository name)
	SiteTwitter              string   // job site twitter account username
	SiteLinkedin             string
	SiteYoutube              string
	SiteTelegramChannel      string
	PrimaryColor             string
	SecondaryColor           string
	SiteLogoImageID          string
	PlanID1Price             int // price in cents
	PlanID2Price             int // price in cents
	PlanID3Price             int // price in cents
	DevDirectoryPlanID1Price int // price in cents
	DevDirectoryPlanID2Price int // price in cents
	DevDirectoryPlanID3Price int // price in cents
	DevelopersBannerLink     string
	DevelopersBannerText     string
	URLProtocol              string
	DevOfferLink1            string
	DevOfferLink2            string
	DevOfferLink3            string
	DevOfferLink4            string
	DevOfferRate1            string
	DevOfferRate2            string
	DevOfferRate3            string
	DevOfferRate4            string
	DevOfferCode1            string
	DevOfferCode2            string
	DevOfferCode3            string
	DevOfferCode4            string
}

func LoadConfig

func LoadConfig() (Config, error)

Jump to

Keyboard shortcuts

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