config

package
v0.0.0-...-7238798 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server      ServerConfig `yaml:"server"`
	JWT         JWTConfig    `yaml:"jwt"`
	Target      TargetConfig `yaml:"target"`
	ExcludeAuth []Request    `yaml:"excludeAuth"`
}

Config of auth service

func ReadConfig

func ReadConfig(file string) (Config, error)

ReadConfig read and decode config file

type JWTConfig

type JWTConfig struct {
	Algorithm string `yaml:"algorithm"`
	PublicKey string `yaml:"publicKey"`
}

type Request

type Request struct {
	Path   string `yaml:"path"`
	Method string `yaml:"method"`
}

type ServerConfig

type ServerConfig struct {
	Port int `yaml:"port"`
}

type TargetConfig

type TargetConfig struct {
	URL string `yaml:"url"`
}

Jump to

Keyboard shortcuts

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