{"modulePath":"github.com/COMTOP1/api","version":"v0.0.0-20261013160217-6eca15d21c26","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package structs\n\n## Types\n\n```go\ntype Access struct {\n\tAccessCookieName string `toml:\"api_access_cookie_name\"`\n\tSigningToken     string `toml:\"api_signing_token\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype Admin struct {\n\tAdminAccessCookieName string `toml:\"api_admin_access_cookie_name\"`\n\tKey0                  string `toml:\"api_admin_key_0\"`\n\tKey1                  string `toml:\"api_admin_key_1\"`\n\tKey2                  string `toml:\"api_admin_key_2\"`\n\tKey3                  string `toml:\"api_admin_key_3\"`\n\tTOTP                  string `toml:\"api_admin_totp\"`\n\tURL                   string `toml:\"api_admin_url\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype Config struct {\n\tServer   Server   `toml:\"server\"`\n\tDatabase Database `toml:\"database\"`\n\tMail     Mail     `toml:\"mail\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype Database struct {\n\tHost     string `toml:\"api_db_host\"`\n\tBucket   string `toml:\"api_db_bucket\"`\n\tUser     string `toml:\"api_db_user\"`\n\tPassword string `toml:\"api_db_pass\"`\n\tSSLMode  string `toml:\"api_db_sslmode\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype Mail struct {\n\tEnabled  bool   `toml:\"api_mail_enabled\"`\n\tHost     string `toml:\"api_mail_host\"`\n\tUser     string `toml:\"api_mail_user\"`\n\tPassword string `toml:\"api_mail_pass\"`\n\tPort     int    `toml:\"api_mail_port\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype Server struct {\n\tDebug      bool       `toml:\"api_debug\"`\n\tPort       string     `toml:\"api_port\"`\n\tDomainName string     `toml:\"api_domain_name\"`\n\tVersion    string     `toml:\"api_version\"`\n\tCommit     string     `toml:\"api_commit\"`\n\tAccess     Access     `toml:\"access\"`\n\tAdmin      Admin      `toml:\"admin\"`\n\tServiceURL ServiceURL `toml:\"service_url\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n```go\ntype ServiceURL struct {\n\tAFC   string `toml:\"api_service_url_afc\"`\n\tBSWDI string `toml:\"api_service_url_bswdi\"`\n\tSSO   string `toml:\"api_service_url_sso\"`\n}\n```\nConfig is a structure containing global website configuration.\n\nSee the comments for Server and PageContext for more details.\n\n","path":"github.com/COMTOP1/api/structs","name":"structs","synopsis":"","isRedistributable":true}
