Documentation
¶
Index ¶
- Constants
- Variables
- func CreateReverseProxy(typ, address string) (*httputil.ReverseProxy, error)
- func JwtGenerate(id string) (string, error)
- func RegisterSwaggerDocs(app *gin.RouterGroup, instance string)
- func Serve()
- func ServeHTTP()
- func ServeLetsEncrypt()
- func ServeTLS()
- func Start()
- type Claims
- type FileSystem
Constants ¶
View Source
const JwtExpire = time.Hour * 24 * 30
View Source
const JwtKey = "iot-master"
View Source
const MODULE = "web"
Variables ¶
View Source
var Engine *gin.Engine
Functions ¶
func CreateReverseProxy ¶
func CreateReverseProxy(typ, address string) (*httputil.ReverseProxy, error)
func JwtGenerate ¶
func RegisterSwaggerDocs ¶
func RegisterSwaggerDocs(app *gin.RouterGroup, instance string)
func ServeLetsEncrypt ¶
func ServeLetsEncrypt()
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
var Static FileSystem
func (*FileSystem) Put ¶
func (f *FileSystem) Put(path string, fs http.FileSystem, base string, index string)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.