Documentation ¶
Index ¶
- Variables
- func Base64Decode(data string) ([]byte, error)
- func Base64Encode(data []byte) string
- func CMConfigFile(filepath string, ci interface{}) error
- func CMHttpGet(rurl string, params url.Values) ([]byte, error)
- func CMHttpPost(rurl string, params url.Values) ([]byte, error)
- func GetConfigInfo(filepath string, ci interface{}) error
- func InitDeamon(backrun bool)
- func InitLog(logfile string, logsize int)
- func JKOpenBrowser(uri string) error
- type Base64
- type ConfigBaseArgs
- type JKNetBase
- func (nb *JKNetBase) Close()
- func (nb *JKNetBase) Dial() error
- func (nb *JKNetBase) DoRecvCycle() error
- func (nb *JKNetBase) GetAddress() (string, int)
- func (nb *JKNetBase) GetNettype() int
- func (nb *JKNetBase) Listen() error
- func (nb *JKNetBase) New(addr string, port int, nettype int) error
- func (nb *JKNetBase) RecvClient() ([]byte, error)
- func (nb *JKNetBase) RecvClientTimeout(timeout int) ([]byte, error)
- func (nb *JKNetBase) RecvClientTimeoutCount(timeout int, c int) ([]byte, error)
- func (nb *JKNetBase) Send(data string) int
- func (nb *JKNetBase) SendTimeout(data string, timeout int) int
- type JKNetBaseItem
- type JKSuperBase
- type Program
- type SimpleParse
- type WebBaseHandle
- type WebBaseInfo
- func (b *WebBaseInfo) GenerateResponse(w http.ResponseWriter, data interface{}, status int)
- func (b *WebBaseInfo) Parse(w http.ResponseWriter, filename string, data interface{}) error
- func (b *WebBaseInfo) Parses(w http.ResponseWriter, data interface{}, filename ...string) error
- func (b *WebBaseInfo) SetFunc(url string, child interface{})
- type WebResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UIntMin :MIN VALUE of UINT UIntMin uint // UIntMax MAX VALUE OF UINT UIntMax = ^uint(0) // IntMax MAX VALUE of INT IntMax = int(^uint(0) >> 1) // IntMin MIN VALUE of INT IntMin = ^IntMax )
View Source
var NetTypeBase = 1
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func CMConfigFile ¶
func GetConfigInfo ¶
func InitDeamon ¶
func InitDeamon(backrun bool)
Types ¶
type Base64 ¶
type Base64 struct {
// contains filtered or unexported fields
}
func NewEncoding ¶
func NewEncoding() *Base64
type ConfigBaseArgs ¶
type JKNetBase ¶
type JKNetBase struct { HandleMsg func(conn net.Conn, data string) error // contains filtered or unexported fields }
func (*JKNetBase) DoRecvCycle ¶
func (*JKNetBase) GetAddress ¶
func (*JKNetBase) GetNettype ¶
func (*JKNetBase) New ¶
Set addr and port with nettype But listen or dial depends on what your operation next
func (*JKNetBase) RecvClient ¶
func (*JKNetBase) RecvClientTimeout ¶
func (*JKNetBase) RecvClientTimeoutCount ¶
type JKNetBaseItem ¶
type JKNetBaseItem struct {
// contains filtered or unexported fields
}
type JKSuperBase ¶
go 实现类似 C++ 的虚拟继承,是一种假像,至少使用上是 通过一种特殊的方法,将子类的对像以接品的形式交给父类 父类再调用相同的方法,其实就是调用子类实现的方法,而非 父类的。但是这种方法也比使用回调稍微好一些,也不是很好理解 不如c++的虚函数来的简单,明了,是对语言的变相使用
type Program ¶
type Program struct { Name string DisplayName string Desc string Runner func() // contains filtered or unexported fields }
func InitProgramRun ¶
func NewProgram ¶
func (*Program) CreateService ¶
type SimpleParse ¶
type SimpleParse struct { }
func (*SimpleParse) Parse ¶
func (sp *SimpleParse) Parse(out io.Writer, file string, data interface{}) error
func (*SimpleParse) ParseString ¶
func (sp *SimpleParse) ParseString(out io.Writer, content string, data interface{}) error
type WebBaseHandle ¶
type WebBaseHandle struct {
// contains filtered or unexported fields
}
func NewWebBaseHandle ¶
func NewWebBaseHandle(port int, path string) (*WebBaseHandle, error)
func (*WebBaseHandle) BasePath ¶
func (h *WebBaseHandle) BasePath() string
type WebBaseInfo ¶
type WebBaseInfo struct { Handler *WebBaseHandle // contains filtered or unexported fields }
func (*WebBaseInfo) GenerateResponse ¶
func (b *WebBaseInfo) GenerateResponse(w http.ResponseWriter, data interface{}, status int)
func (*WebBaseInfo) Parse ¶
func (b *WebBaseInfo) Parse(w http.ResponseWriter, filename string, data interface{}) error
deprecated
func (*WebBaseInfo) Parses ¶
func (b *WebBaseInfo) Parses(w http.ResponseWriter, data interface{}, filename ...string) error
func (*WebBaseInfo) SetFunc ¶
func (b *WebBaseInfo) SetFunc(url string, child interface{})
type WebResult ¶
type WebResult struct {
Desc string
}
func (*WebResult) NewWebResult ¶
func (*WebResult) NewWebResultNoPermission ¶
func (*WebResult) NewWebResultNotExist ¶
Click to show internal directories.
Click to hide internal directories.