Documentation
¶
Overview ¶
Package config holds the server settings, their defaults, and their validation.
Index ¶
Constants ¶
View Source
const ( DefaultMaxPageSize = 100 DefaultAlgorithm = "HS256" DefaultIssuer = "libsql-rest" DefaultAudience = "libsql-rest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Enabled bool
Algorithm string
Secret string
PublicKeyPath string
Issuer string
Audience string
Optional bool
}
func (AuthConfig) IsRSA ¶
func (a AuthConfig) IsRSA() bool
type Config ¶
type Config struct {
Server ServerConfig
DB DBConfig
Auth AuthConfig
MaxPageSize int
AllowTables []string
}
func (Config) IsTableAllowed ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.