configs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppDir = "./"

Functions

This section is empty.

Types

type AndiFactory

type AndiFactory struct {
	Name    string
	Package string
	Module  string
}

func GenerateFactorySurvey

func GenerateFactorySurvey() (answers AndiFactory, err error)

type AndiModel

type AndiModel struct {
	Module     string
	Name       string
	Package    string
	ApiVersion string
	AuthType   string
}

func GenerateModelSurvey

func GenerateModelSurvey() (answers AndiModel, err error)

type Application

type Application struct {
	Type         string // application type api, front
	Name         string // application name
	Auth         bool   // secure application api true|false
	AuthType     string // auth type jwt|oidc
	Port         string // application port
	DatabaseType string `mapstructure:"database-type"` // application database-type
}

func InitSurvey

func InitSurvey() (answers Application, err error)

type GeneralConfig

type GeneralConfig struct {
	App    Application `mapstructure:"application"`
	Models []Model     `mapstructure:"models"`
}
var AppConfs GeneralConfig

type Model

type Model struct {
	Name    string
	Package string
}

Jump to

Keyboard shortcuts

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