Documentation
¶
Index ¶
- func GinRefreshPage(refreshInterval int)
- func QRecovery(f func(c *gin.Context, err interface{})) gin.HandlerFunc
- func QRecoveryWithWriter(f func(c *gin.Context, err interface{})) gin.HandlerFunc
- type CustomHTMLRenderer
- type HtmlInfo
- type HttpAgent
- func (o *HttpAgent) Get(opts []map[string]interface{}, nicemilli int, newsession int, concurrent int, ...) ([]map[string]interface{}, error)
- func (o *HttpAgent) GetDriverConcurrent(opts []map[string]interface{}, nicemilli int, newsession int, concurrent int, ...) ([]map[string]interface{}, error)
- func (o *HttpAgent) GetMany(driver selenium.WebDriver, opts []map[string]interface{}, nicemilli int, ...) ([]map[string]interface{}, error)
- func (o *HttpAgent) GetOne(driver selenium.WebDriver, opt map[string]interface{}, newsession bool, ...) (map[string]interface{}, error)
- func (o *HttpAgent) GetSimpleConcurrent(opts []map[string]interface{}, nicemilli int, newsession int, concurrent int, ...) ([]map[string]interface{}, error)
- func (o *HttpAgent) InitDriver() (driver selenium.WebDriver, err error)
- func (o *HttpAgent) InitDrivers(count int) (drivers []selenium.WebDriver, err error)
- func (o *HttpAgent) InitParameters(config map[string]interface{})
- func (o *HttpAgent) InitService() ([]*selenium.Service, error)
- func (o *HttpAgent) IsBasicHttp() bool
- func (o *HttpAgent) ReleaseDrivers(drivers []selenium.WebDriver)
- func (o *HttpAgent) StopService()
- func (o *HttpAgent) Terminate() error
- type HttpServer
- func (o *HttpServer) GetData(key string) interface{}
- func (o *HttpServer) ReqParse(c *gin.Context) (map[string]interface{}, error)
- func (o *HttpServer) ResolvePath(path string, category string) (string, error)
- func (o *HttpServer) RespJson(code int, data interface{}, c *gin.Context)
- func (o *HttpServer) RespJsonEx(data interface{}, err error, c *gin.Context)
- func (o *HttpServer) Run() error
- func (o *HttpServer) SetData(key string, val interface{})
- func (o *HttpServer) Terminate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinRefreshPage ¶
func GinRefreshPage(refreshInterval int)
func QRecoveryWithWriter ¶
func QRecoveryWithWriter(f func(c *gin.Context, err interface{})) gin.HandlerFunc
Types ¶
type CustomHTMLRenderer ¶
type CustomHTMLRenderer struct { Name string Data interface{} }
func (*CustomHTMLRenderer) Instance ¶
func (r *CustomHTMLRenderer) Instance(name string, data interface{}) render.Render
func (*CustomHTMLRenderer) Render ¶
func (r *CustomHTMLRenderer) Render(w http.ResponseWriter) error
func (*CustomHTMLRenderer) WriteContentType ¶
func (r *CustomHTMLRenderer) WriteContentType(w http.ResponseWriter)
type HttpAgent ¶
func (*HttpAgent) GetDriverConcurrent ¶
func (*HttpAgent) GetSimpleConcurrent ¶
func (*HttpAgent) InitDriver ¶
func (*HttpAgent) InitDrivers ¶
func (*HttpAgent) InitParameters ¶
func (*HttpAgent) IsBasicHttp ¶
func (*HttpAgent) ReleaseDrivers ¶
func (*HttpAgent) StopService ¶
func (o *HttpAgent) StopService()
type HttpServer ¶
func GetInstance ¶
func GetInstance() *HttpServer
func (*HttpServer) GetData ¶
func (o *HttpServer) GetData(key string) interface{}
func (*HttpServer) ReqParse ¶
func (o *HttpServer) ReqParse(c *gin.Context) (map[string]interface{}, error)
func (*HttpServer) ResolvePath ¶
func (o *HttpServer) ResolvePath(path string, category string) (string, error)
func (*HttpServer) RespJson ¶
func (o *HttpServer) RespJson(code int, data interface{}, c *gin.Context)
func (*HttpServer) RespJsonEx ¶
func (o *HttpServer) RespJsonEx(data interface{}, err error, c *gin.Context)
func (*HttpServer) Run ¶
func (o *HttpServer) Run() error
func (*HttpServer) SetData ¶
func (o *HttpServer) SetData(key string, val interface{})
func (*HttpServer) Terminate ¶
func (o *HttpServer) Terminate() error
Click to show internal directories.
Click to hide internal directories.