Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2Config ¶
type OAuth2Config struct {
// contains filtered or unexported fields
}
func (OAuth2Config) AuthCodeURL ¶
func (config OAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
func (OAuth2Config) Exchange ¶
func (config OAuth2Config) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
func (OAuth2Config) GetClientID ¶
func (config OAuth2Config) GetClientID() string
type WeatherDataController ¶
type WeatherDataController struct { OpenWeatherMapClient openweather.WeatherFetcher KeycloakClientSecret string }
func (WeatherDataController) CityHandler ¶
func (c WeatherDataController) CityHandler(writer http.ResponseWriter, request *http.Request)
func (WeatherDataController) HomeHandler ¶
func (c WeatherDataController) HomeHandler(writer http.ResponseWriter, _ *http.Request)
func (WeatherDataController) SetupRoutes ¶
func (c WeatherDataController) SetupRoutes() *mux.Router
Click to show internal directories.
Click to hide internal directories.