Documentation ¶
Index ¶
- Constants
- Variables
- func CreateValidator()
- func GetAssetDir() string
- func GetConfigFile() string
- func GetProjectFilePath(projectID int64) string
- func GetProjectPath(projectID int64) string
- func GetRepositoryPath() string
- func GetTerminalLogPath(tlID int64) string
- func Log(lv LogLevel, content string)
- func Logf(lv LogLevel, format string, a ...interface{})
- type Goploy
- type LogLevel
- type Response
- type Route
- type RouteApi
- type Router
Constants ¶
View Source
const NamespaceHeaderName = "G-N-ID"
NamespaceHeaderName namespace cookie name
Variables ¶
View Source
var (
AssetDir string
)
View Source
var Trans ut.Translator
Trans Translator
View Source
var Validate *validator.Validate
Validate use a single instance of Validate, it caches struct info
Functions ¶
func GetAssetDir ¶ added in v1.1.4
func GetAssetDir() string
GetAssetDir if env = 'production' return absolute else return relative
func GetConfigFile ¶ added in v1.4.2
func GetConfigFile() string
func GetProjectFilePath ¶ added in v1.1.3
func GetProjectPath ¶ added in v1.0.3
func GetRepositoryPath ¶ added in v1.0.3
func GetRepositoryPath() string
func GetTerminalLogPath ¶ added in v1.4.6
Types ¶
type Route ¶ added in v1.4.3
type Route struct {
// contains filtered or unexported fields
}
func NewWhiteRoute ¶ added in v1.4.6
func (Route) Middleware ¶ added in v1.4.3
Middleware global Middleware handle function
func (Route) Permissions ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.