config

package
v0.0.0-...-95e334a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Host string
	Port string
}

type Config

type Config struct {
	JWT     JWT
	User    User
	Auth    Auth
	Gateway Gateway
}

func Load

func Load(path string) (*Config, error)

type DB

type DB struct {
	User    string
	Passwd  string
	DSN     string
	Name    string
	Options string
}

type Gateway

type Gateway struct {
	Port string
}

type JWT

type JWT struct {
	Secret string
	Expire time.Duration
}

type User

type User struct {
	Host string
	Port string
	DB   DB
}

Jump to

Keyboard shortcuts

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