config

package
v0.0.0-...-787a26c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New()

Types

type Config

type Config struct {
	App struct {
		Environment string
		Version     string
		Addr        string
		Port        string
	}

	Storage struct {
		Name     string
		Username string
		Password string
		Addr     string
		SSL      string
	}

	Auth struct {
		AuthKey              string
		GoogleClientID       string
		GoogleClientSecret   string
		GithubClientID       string
		GithubClientSecret   string
		FacebookClientID     string
		FacebookClientSecret string
		TokenAuth            *jwtauth.JWTAuth
		Store                *sessions.CookieStore
	}
}

func Get

func Get() *Config

func (*Config) GetBaseAPIURL

func (c *Config) GetBaseAPIURL() string

func (*Config) GetBaseAPIVersionPrefix

func (c *Config) GetBaseAPIVersionPrefix() string

func (*Config) GetBaseWebURL

func (c *Config) GetBaseWebURL() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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