config

package
v0.0.0-...-787e22e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CandleTableName = "eth_candles"
	TimeFormat      = "2006-01-02 15:04:05"
)
View Source
const CookieName = "fukkatsuso-cryptocurrency"

Variables

View Source
var (
	APIKey         string
	APISecret      string
	ProductCode    string
	CandleDuration time.Duration
	TradeHour      int
)
View Source
var (
	COOKIE_HASHKEY  = []byte(os.Getenv("COOKIE_HASHKEY"))  // at least 32 bytes long
	COOKIE_BLOCKKEY = []byte(os.Getenv("COOKIE_BLOCKKEY")) // 16 bytes (AES-128) or 32 bytes (AES-256) long
)
View Source
var (
	MYSQL_USER            = os.Getenv("MYSQL_USER")
	MYSQL_PASSWORD        = os.Getenv("MYSQL_PASSWORD")
	MYSQL_HOST            = os.Getenv("MYSQL_HOST")
	MYSQL_PORT            = os.Getenv("MYSQL_PORT")
	MYSQL_DATABASE        = os.Getenv("MYSQL_DATABASE")
	MYSQL_CONNECTION_NAME = os.Getenv("MYSQL_CONNECTION_NAME")
	MYSQL_OPTION          = "?parseTime=true"
)
View Source
var (
	SlackBotToken  string
	SlackChannelID string
)
View Source
var DB *sql.DB
View Source
var (
	LocalTime *time.Location
)

Functions

func DSN

func DSN() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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