Versions in this module Expand all Collapse all v0 v0.0.2 Dec 18, 2020 Changes in this version + type GeneralData struct + Cmd string + Code int + Initial map[string]json.RawMessage + Range map[string]json.RawMessage + Value map[string]json.RawMessage + type OptionRestHandler interface + func WithEndpoint(endpoint string) OptionRestHandler + func WithPort(port int) OptionRestHandler + func WithProxyHost(host string) OptionRestHandler + func WithProxyPassword(password string) OptionRestHandler + func WithProxyPort(port int) OptionRestHandler + func WithProxyProtocol(protocol Protocol) OptionRestHandler + func WithProxyScheme(scheme Scheme) OptionRestHandler + func WithProxyUsername(username string) OptionRestHandler + func WithScheme(scheme Scheme) OptionRestHandler + type Protocol uint + const PROTOCOL_TCP + const PROTOCOL_UDP + func (p Protocol) String() string + type RestHandler struct + func NewRestHandler(host string, opts ...OptionRestHandler) *RestHandler + func (rh *RestHandler) GetToken() string + func (rh *RestHandler) Request(method string, payload interface{}, command string) (*GeneralData, error) + func (rh *RestHandler) SetToken(token string) + type Scheme uint + const HTTP + const HTTPS + const SOCKS5 + func (p Scheme) String() string