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 AccountServiceConfig

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

type Config

type Config struct {
	Server         ServerConfig         `yaml:"server"`
	AccountService AccountServiceConfig `yaml:"AccountService"`
	JWT            JWTConfig            `yaml:"jwt"`
}

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"`
	PrivateKey string `yaml:"privateKey"`
	PublicKey  string `yaml:"publicKey"`
}

type ServerConfig

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

Jump to

Keyboard shortcuts

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