Versions in this module Expand all Collapse all v1 v1.9.9 Feb 2, 2025 v1.8.5 Feb 1, 2025 v1.8.4 Feb 1, 2025 v1.8.3 Feb 1, 2025 v1.8.2 Feb 1, 2025 v1.8.1 Feb 1, 2025 Changes in this version + var DefaultClient = &Client + func AddQueryParameters(baseURL string, queryParams map[string]string) string + func AsigServer(e *echo.Echo, cs []Controller) error + func BasicAuth(username, password string) string + func BuildRequestObject(request Request) (*http.Request, error) + func ExtKey(c echo.Context) string + func JSONSend(data StDataEnv, e echo.Context) error + func MakeRequest(req *http.Request) (*http.Response, error) + func NewNetClient(timeout int) *http.Client + func TokenHeaders(token string) map[string]string + type Browser struct + Engine string + EngineVersion string + Name string + Version string + type Client struct + HTTPClient *http.Client + func NewClient(timeout int) *Client + func (c *Client) MakeRequest(req *http.Request) (*http.Response, error) + func (c *Client) Send(request Request) (*Response, error) + func (c *Client) SendByte(req Request) ([]byte, int, error) + func (c *Client) SendByteV2(req Request) ([]byte, map[string][]string, int, error) + func (c *Client) SendNative(req Request) (*Response, int, error) + type ConfigServer struct + CertFile string + Debug bool + DirSSL string + Env bool + Ipser string + KeyFile string + Local bool + Protocol string + Puerto int + func (p *ConfigServer) Host() string + func (p *ConfigServer) LoadIni(path string) error + func (p *ConfigServer) PathCert() string + func (p *ConfigServer) PathKey() string + func (p *ConfigServer) StarServer(e *echo.Echo) + func (p *ConfigServer) Valid() error + type Controller struct + Pets []HTTPPet + type HTTPPet struct + Path string + Pet func(echo.Context) error + Tip HTTPTip + func (p *HTTPPet) Valid() error + type HTTPTip string + const DELETE + const GET + const HTTP + const HTTPS + const POST + const PUT + func (p *HTTPTip) Valid() bool + type MapMsjPet map[string]StMsjPet + func (p *MapMsjPet) Send(cod string, data interface{}, e echo.Context) error + func (p *MapMsjPet) SendFormat(cod string, data interface{}, e echo.Context, param ...interface{}) error + type Request struct + BaseURL string + Body []byte + Headers map[string]string + Method HTTPTip + QueryParams map[string]string + type Response struct + Body string + Headers map[string][]string + StatusCode int + func BuildResponse(res *http.Response) (*Response, error) + func Send(request Request) (*Response, error) + type RestError struct + Response *Response + type StDataEnv struct + Code int + Data interface{} + Error string + func (p *StDataEnv) ResultCodeJSON(code int, e echo.Context) error + func (p *StDataEnv) ResultFullJSON(code int, msjerr string, data interface{}, e echo.Context) error + func (p *StDataEnv) ResultJSON(e echo.Context) error + type StInfoPet struct + Method string + URL string + func InfPet(c echo.Context) StInfoPet + func InfPetKey(c echo.Context) (StInfoPet, string) + type StInfoReq struct + Browser string + HostOrig string + IPRemote string + SystemOI string + UserAgent string + func FindInfoReq(c echo.Context) (StInfoReq, error) + type StMsjPet struct + Code int + Msj string + type UserAgent struct + Bot bool + Browser Browser + Localization string + Mobile bool + Mozilla string + OS string + Platform string + UA string + Undecided bool + func New(ua string) *UserAgent + func (p *UserAgent) Parse(ua string)