30 lines
501 B
Go
30 lines
501 B
Go
|
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
|
||
|
}
|