Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
func IndexHandler ¶
func IndexRedirectHandler ¶
func SetupRoutes ¶
Types ¶
type Config ¶
type Config struct {
HTTP HTTPConfig `mapstructure:"http"`
Blob blob.S3Config `mapstructure:"blob"`
Auth auth.Config `mapstructure:"auth"`
Email email.Config `mapstructure:"email"`
DataDir string `mapstructure:"data_dir"`
LogDir string `mapstructure:"log_dir"`
}
Config holds the overall server configuration.
type HTTPConfig ¶
type HTTPConfig struct {
Addr string `mapstructure:"addr"`
CertFilePath string `mapstructure:"cert_file"`
KeyFilePath string `mapstructure:"key_file"`
Domain string `mapstructure:"domain"` // Main domain for subdomain routing (e.g., "syftbox.net")
}
HTTPConfig holds HTTP server specific configuration.
func (*HTTPConfig) HTTPSEnabled ¶
func (c *HTTPConfig) HTTPSEnabled() bool
func (*HTTPConfig) Validate ¶
func (c *HTTPConfig) Validate() error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the main application server and its dependencies
type Services ¶
type Services struct {
Blob *blob.BlobService
ACL *acl.ACLService
Datasite *datasite.DatasiteService
Auth *auth.AuthService
Email *email.EmailService
AccessLog *accesslog.AccessLogger
}
Click to show internal directories.
Click to hide internal directories.