common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessfulEn string = "successful"
	SuccessfulCn string = "操作成功"
	FailCn       string = "操作失败"
	FailEn       string = "operattion failed"
	SuccessCode  int    = 200
	FailCode     int    = 500
)
View Source
const (
	JsonType string = "json"
	TomlType string = "toml"
	YamlType string = "yaml"
	YmlType  string = "yml"
)
View Source
const (
	ErrorTypeSupported string = "This type is currently not supported. Please check!"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpConf

type HttpConf struct {
	Host      string `json:"host"`
	InnerHost string `json:"innerHost"`
}

type ServerConf

type ServerConf struct {
	HttpConf `json:"http"`
	SwagConf `json:"doc"`
}

type SwagConf

type SwagConf struct {
	Host    string `json:"host"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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