Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDatabase ¶
func SetupDatabase(config DatabaseConfig) (*gorm.DB, error)
Types ¶
type AuthService ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `env:"POSTGRES_HOST" validate:"hostname"` DbUser string `env:"POSTGRES_USER"` Password string `env:"POSTGRES_PASSWORD"` Dbname string `env:"POSTGRES_DBNAME"` Port int `env:"POSTGRES_PORT"` Sslmode string `env:"POSTGRES_SSLMODE"` Timezone string `env:"TIMEZONE"` DatabaseUrl string `env:"DATABASE_URL"` }
func ReadDatabaseConfig ¶
func ReadDatabaseConfig() (DatabaseConfig, error)
type GothicAuthService ¶
type GothicAuthService struct { }
func (*GothicAuthService) CompleteUserAuth ¶
func (svc *GothicAuthService) CompleteUserAuth(w http.ResponseWriter, r *http.Request) (goth.User, error)
type JwtServiceImpl ¶
type JwtServiceImpl struct { }
func (JwtServiceImpl) CreateToken ¶
func (srv JwtServiceImpl) CreateToken(issuer string, id int) (string, error)
Click to show internal directories.
Click to hide internal directories.