Documentation ¶
Index ¶
- Constants
- Variables
- type Base
- func (ctx *Base) Args() string
- func (ctx *Base) CheckDir(path string) bool
- func (ctx *Base) CheckFile(path string) bool
- func (ctx *Base) CreateDir(path string) bool
- func (ctx *Base) CreateFile(path string) bool
- func (ctx *Base) DelDir(path string) bool
- func (ctx *Base) DelFile(path string) bool
- func (ctx *Base) GetButtonAlias() string
- func (ctx *Base) GetButtonList() string
- func (ctx *Base) GetButtonStatus() string
- func (ctx *Base) GetFileList(path string) []os.FileInfo
- func (ctx *Base) GoFail(data interface{}, info interface{}) gin.H
- func (ctx *Base) GoSuccess(data interface{}, info interface{}) gin.H
- func (ctx *Base) Init()
- func (ctx *Base) InitDir(path string)
- func (ctx *Base) InitFile(path string)
- func (ctx *Base) NowTime() [3]string
- func (ctx *Base) ReadFile(path string) string
- func (ctx *Base) RequestTCP(data string) bool
- func (ctx *Base) WriteFile(path string, info string) bool
Constants ¶
View Source
const ( BASEPATH = config.BASEPATH TCPSERVER = config.TCPSERVER TIMEFILE = config.TIMEFILE SWITCHFILE = config.SWITCHFILE )
Variables ¶
View Source
var ( DeviceLink *cache.Cache DeviceAlias *cache.Cache ButtonStatus *cache.Cache )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.