configs

package
v0.0.0-...-29f350e Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 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 Apple

type Apple struct {
	Oauth AppleAuthConfig `mapstructure:"auth"`
}

Apple ...

type AppleAuthConfig

type AppleAuthConfig struct {
	AuthURL     string `mapstructure:"auth-url"`
	TeamId      string `mapstructure:"team-id"`
	ClientID    string `mapstructure:"client-id"`
	KeyID       string `mapstructure:"key-id"`
	KeyPath     string `mapstructure:"key-path"`
	RedirectURL string `mapstructure:"redirect-url"`
}

type Client

type Client struct {
	Kakao  Kakao  `mapstructure:"kakao"`
	Google Google `mapstructure:"google"`
	Apple  Apple  `mapstructure:"apple"`
}

Client ...

type Config

type Config struct {
	DBConfig DBConfig `mapstructure:"db-config"`
	Client   Client   `mapstructure:"client"`
}

Config ...

func Load

func Load(path string) (Config, error)

Load ...

type DBConfig

type DBConfig struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	User     string `mapstructure:"user"`
	Name     string `mapstructure:"name"`
	Password string `mapstructure:"password"`
}

DBConfig ...

func DatabaseConfig

func DatabaseConfig() *DBConfig

DatabaseConfig ...

type Google

type Google struct {
	Oauth OAuthConfig `mapstructure:"oauth"`
}

Google ...

type Kakao

type Kakao struct {
	Oauth   OAuthConfig `mapstructure:"oauth"`
	BaseURL string      `mapstructure:"base-url"`
}

Kakao ...

type OAuthConfig

type OAuthConfig struct {
	ClientID     string `mapstructure:"client-id"`
	ClientSecret string `mapstructure:"client-secret"`
	RedirectURL  string `mapstructure:"redirect-url"`
}

OAuthConfig ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳