Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadRouting is returned when an expected path variable is missing. ErrBadRouting = errors.New("inconsistent mapping between route and handler (programmer error)") )
View Source
var ErrEmpty = errors.New("empty string")
ErrEmpty is returned when an input string is empty.
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when an input string is empty.
View Source
var ( //ErrRequestTypeNotFound err ErrRequestTypeNotFound = errors.New("Request type only valid for word, sentence and paragraph") )
Functions ¶
func MakeGetBestProxyIPEndpoint ¶
MakeGetBestProxyIPEndpoint make a endpoint
func MakeHTTPHandler ¶
MakeHTTPHandler make http handler
func MakePostBestProxyIPEndpoint ¶
MakePostBestProxyIPEndpoint make a endpoint
Types ¶
type BestProxyIP ¶
type BestProxyIP struct { Status int `json:"status"` ID string `json:"id"` IP string `json:"ip"` Dur float64 `json:"dur"` Err string `json:"err,omitempty"` }
BestProxyIP best
type Endpoints ¶
type Endpoints struct { PostBestProxyIPEndpoint endpoint.Endpoint GetBestProxyIPEndpoint endpoint.Endpoint }
Endpoints endpoint module
type ProxyIPService ¶
type ProxyIPService struct { }
ProxyIPService type
func (ProxyIPService) GetBestProxyIP ¶
func (ProxyIPService) GetBestProxyIP(ctx context.Context, id string) (*BestProxyIP, error)
GetBestProxyIP ., error)
func (ProxyIPService) PostBestProxyIP ¶
func (ProxyIPService) PostBestProxyIP(ctx context.Context, b BestProxyIP) error
PostBestProxyIP Implemented
Click to show internal directories.
Click to hide internal directories.