OSGOS_D1/custom/shop-client/common/definitions.go

30 lines
501 B
Go
Raw Permalink Normal View History

2024-01-30 07:10:17 +00:00
package common
import (
log "github.com/sirupsen/logrus"
)
const (
defaultWebPort = 10002
UrlShop = "https://reg.osgos.ru"
PathConfig = "./"
OptionsFile = "options.json"
PathWebFiles = "/web/"
LengthRandomSalt = 32
)
var (
// Options опции по-умолчанию
Options = options{
Key: RandomString(LengthRandomSalt),
TypeLog: log.DebugLevel,
WebPort: defaultWebPort,
}
)
type options struct {
WebPort int
TypeLog log.Level
Key string
}