endpoints

package
v0.0.0-...-55c6efe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL