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() error
- func ServeHTTP() error
- func ServeLetsEncrypt() error
- func ServeTLS() error
- func Shutdown() error
- func Startup() error
- type Claims
- type FileSystem
Constants ¶
View Source
const MODULE = "web"
Variables ¶
View Source
var Engine *gin.Engine
View Source
var JwtExpire = time.Hour * 24 * 30
View Source
var JwtKey = "iot-master"
View Source
var Server *http.Server
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() error
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.