Documentation
¶
Overview ¶
Package server provides the HTTP server setup for socialapp
Index ¶
Constants ¶
View Source
const ( DefaultMiddlewareTimeout = 20 * time.Second CompressionLevel = 5 )
Configuration constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
InstanceID string
AppName string
AppPort int
ProxyURL string
LogLevel slog.Level
LogDestinations []io.Writer
LoggerProvider *sdklog.LoggerProvider
DBPool *pgxpool.Pool
Queries *dbpgx.Queries
Cache *cache.Cache
PropertiesSubdomain *url.URL
DefaultTimeout time.Duration
URLShortenerSubdomain string
URLShortenerURL *url.URL
SocialappSubdomain string
JWTSecret string
PuttyknifeSubDomain string
PuttyknifeURL *url.URL
KibanaSubdomain string
KibanaURL string
LocalSubdomain string
OpenAPIContent []byte
}
Config holds all the configuration for the server
Click to show internal directories.
Click to hide internal directories.