Documentation ¶
Index ¶
- Variables
- func GetAirports() []string
- func IsValidOAuth2Provider(provider string) bool
- func ParseAirports(file string) error
- func ParseConfig(file string) error
- func ValidateCache(c *Cache) error
- func ValidateConfig(c *Config) error
- func ValidateOAuth(o *OAuth) error
- func ValidateSession(s *Session) error
- type Cache
- type CacheExpiration
- type Config
- type Database
- type Facility
- type FacilityADH
- type OAuth
- type OAuthEndpoints
- type Server
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCacheDriver = errors.New("invalid cache driver") ErrInvalidCacheRedisHost = errors.New("invalid redis host or port") ErrInvalidCacheRedisDB = errors.New("invalid redis db") ErrInvalidOAuthProvider = errors.New("invalid oauth provider") ErrInvalidSessionBlockKey = errors.New("invalid session block key") ErrInvalidSessionHashKey = errors.New("invalid session hash key") ErrMissingSessionDomain = errors.New("missing session domain") )
Functions ¶
func GetAirports ¶
func GetAirports() []string
func IsValidOAuth2Provider ¶
func ParseAirports ¶
func ParseConfig ¶
func ValidateCache ¶
func ValidateConfig ¶
func ValidateOAuth ¶
func ValidateSession ¶
Types ¶
type CacheExpiration ¶
type Config ¶
type Facility ¶
type Facility struct { Identifier string `json:"identifier"` Name string `json:"name"` ADH FacilityADH `json:"adh"` }
type FacilityADH ¶
type OAuthEndpoints ¶
Click to show internal directories.
Click to hide internal directories.