app

package
v0.0.0-...-4b8811d Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Db     *gorm.DB
	Log    *logrus.Logger
	Config *Config
}

type Config

type Config struct {
	Oidc       OauthConfig `yaml:"oidc"`
	BaseUrl    string      `yaml:"base_url"`
	ListenAddr string      `yaml:"listen_addr" default:":8080"`
}

type OauthConfig

type OauthConfig struct {
	AuthURL      string `yaml:"auth_url"`
	TokenURL     string `yaml:"token_url"`
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`

	UserInfoURL string `yaml:"user_info_url"`
}

Jump to

Keyboard shortcuts

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