project

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyauth added in v0.8.5

type Keyauth struct {
	Host         string
	Port         string
	ClientID     string
	ClientSecret string
}

Keyauth 鉴权服务配置

type MongoDB added in v1.5.8

type MongoDB struct {
	Endpoints string
	UserName  string
	Password  string
	Database  string
	AuthDB    string
}

type MySQL added in v1.5.8

type MySQL struct {
	Host     string
	Port     string
	Database string
	UserName string
	Password string
}

type Project

type Project struct {
	PKG           string
	Name          string
	Description   string
	EnableKeyauth bool
	Keyauth       *Keyauth
	EnableMySQL   bool
	MySQL         *MySQL
	EnableMongoDB bool
	MongoDB       *MongoDB
	GenExample    bool
	EnableCache   bool
	// contains filtered or unexported fields
}

Project todo

func LoadConfigFromCLI

func LoadConfigFromCLI() (*Project, error)

LoadConfigFromCLI 配置

func (*Project) Init

func (p *Project) Init() error

Init 初始化项目

func (*Project) LoadKeyauthConfig added in v1.5.8

func (p *Project) LoadKeyauthConfig() error

func (*Project) LoadMongoDBConfig added in v1.5.8

func (p *Project) LoadMongoDBConfig() error

func (*Project) LoadMySQLConfig added in v1.5.8

func (p *Project) LoadMySQLConfig() error

Jump to

Keyboard shortcuts

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