auth/internal/config/usecase.go

29 lines
1.5 KiB
Go
Raw Normal View History

package config
2021-10-13 21:31:10 +00:00
import "time"
type UseCase interface {
2021-11-14 21:09:07 +00:00
GetDatabasePath() string // data/indieauth.db
GetDatabaseType() string // bolt
GetIndieAuthAccessTokenExpirationTime() time.Duration // time.Hour
GetIndieAuthCodeLength() int // 32
GetIndieAuthEnabled() bool // true
GetIndieAuthJWTSecret() []byte // hackme
GetIndieAuthJWTSigningAlgorithm() string // RS256
GetIndieAuthJWTSigningPrivateKeyFile() string // jwt/private.pem
GetIndieAuthJWTNonceLength() int // 22
GetName() string // IndieAuth
GetRunMode() string // dev
GetServerAddress() string // 0.0.0.0:3000
GetServerCertificate() string // https/cert.pem
GetServerDomain() string // localhost
GetServerEnablePPROF() bool // false
GetServerHost() string // 0.0.0.0
GetServerKey() string // https/key.pem
GetServerPort() int // 3000
GetServerProtocol() string // http
GetServerRootURL() string // http://localhost:3000/
GetServerStaticRootPath() string // /
GetServerStaticURLPrefix() string // /static
}