Versions in this module Expand all Collapse all v0 v0.1.2 Mar 23, 2019 v0.1.1 Mar 26, 2019 v0.1.0 Mar 26, 2019 Changes in this version + func StartHTTPServer(base string, port, m3port int) + func StartServer(base, host string, port int) + type Client struct + Host string + Port int + func NewClient(host string, port int) (*Client, error) + func (r *Client) Close() error + func (r *Client) Connect() error + func (r *Client) Start() (*Response, error) + func (r *Client) Status() (*Response, error) + func (r *Client) Stop() (*Response, error) + type HTTPServer struct + func NewHTTPServer(base, ep string) *HTTPServer + func (r *HTTPServer) Start() func(http.ResponseWriter, *http.Request) + func (r *HTTPServer) Status() func(http.ResponseWriter, *http.Request) + func (r *HTTPServer) Stop() func(http.ResponseWriter, *http.Request) + type Handler struct + func (r *Handler) Start(req Request, res *Response) error + func (r *Handler) Status(req Request, res *Response) error + func (r *Handler) Stop(req Request, res *Response) error + type Request struct + type Response struct + Message string + Status bool + type Server struct + Host string + Port int + func NewServer(base string, host string, port int) *Server + func (r *Server) Addr() string + func (r *Server) Run() (err error) + func (r *Server) Start() (err error) + func (r *Server) Stop() (err error)