Documentation
¶
Overview ¶
Package web contains the web service for the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Local bool `conf:"default:true"`
Google providers.GoogleConfig
}
func (Auth) HasProvider ¶
func (Auth) IsGoogleEnabled ¶
func (Auth) IsLocalEnabled ¶
type Config ¶
type Config struct {
ServiceName string `conf:"default:gottl"`
Host string `conf:"default:0.0.0.0"`
Port string `conf:"default:8080"`
IdleTimeout time.Duration `conf:"default:30s"`
ReadTimeout time.Duration `conf:"default:10s"`
WriteTimeout time.Duration `conf:"default:10s"`
AllowedOrigins string `conf:"default:http://*,http://*"`
EnableProfiler bool `conf:"default:false"`
Otel otel.Config
Google providers.GoogleConfig
Auth Auth
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package docs servces the swagger.json file.
|
Package docs servces the swagger.json file. |
|
Package extractors contains extractor functions for getting data out of the request.
|
Package extractors contains extractor functions for getting data out of the request. |
|
Package handlers contains the HTTP handlers for the application endpoints.
|
Package handlers contains the HTTP handlers for the application endpoints. |
|
Package mid contains http middleware for the application.
|
Package mid contains http middleware for the application. |
|
oauth
|
|
|
handlers
Package handlers provides the oauth handlers for the web server.
|
Package handlers provides the oauth handlers for the web server. |
|
providers
Package providers contains the Oauth2 provider and config structs
|
Package providers contains the Oauth2 provider and config structs |
Click to show internal directories.
Click to hide internal directories.