Documentation
¶
Index ¶
- func LoadTT(dir string)
- func MakeUid(enable bool)
- func RegHandler(method string, url string, fn HandlerFunc)
- func RegJsonRPC(url string)
- func RegMethod(method string, fn interface{})
- func RenderStringTT(ttStr string, vars TmplVars) (string, error)
- func RenderTT(ttName string, vars TmplVars) (string, error)
- func SetLogger(fn LoggerFunc)
- func Start(addr string) error
- func WriteStringTT(rw http.ResponseWriter, ttStr string, vars TmplVars)
- func WriteTT(rw http.ResponseWriter, ttName string, vars TmplVars)
- type HandlerFunc
- type LoggerFunc
- type RpcError
- type TmplVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegHandler ¶
func RegHandler(method string, url string, fn HandlerFunc)
func RegJsonRPC ¶
func RegJsonRPC(url string)
func SetLogger ¶
func SetLogger(fn LoggerFunc)
func WriteStringTT ¶
func WriteStringTT(rw http.ResponseWriter, ttStr string, vars TmplVars)
Types ¶
type HandlerFunc ¶
type LoggerFunc ¶
type LoggerFunc = logger.LoggerFunc
Click to show internal directories.
Click to hide internal directories.