Versions in this module Expand all Collapse all v0 v0.2.1 Nov 28, 2023 v0.2.0 Nov 27, 2023 Changes in this version + type Client struct + func NewClient() *Client + func (c *Client) CommonDoFromRequest(req *http.Request, output interface{}) (int, error) + func (c *Client) CommonDoWithForm(method, url string, headers map[string]string, input url.Values) (int, []byte, error) + func (c *Client) CommonDoWithJSON(method, url string, headers map[string]string, input, output interface{}) (int, error) + func (c *Client) MakeJSONRequest(method, path string, headers map[string]string, input interface{}) (*http.Request, error) + func (c *Client) WithBaseURL(baseURL string) *Client + func (c *Client) WithHeaders(key string, value string) *Client + func (c *Client) WithTimeout(timeout time.Duration) *Client + type Config struct + ReadTimeout time.Duration + WriteTimeout time.Duration + type Controller interface + RegisterHandlers func(*mux.Router) + type MuxServer struct + func NewMuxServer(port int, cfg Config) *MuxServer + func (s *MuxServer) Serve(ctx context.Context) error + func (s *MuxServer) Shutdown(ctx context.Context) error + func (s *MuxServer) WithAdditionalHandlers(pathHandlerPair ...interface{}) *MuxServer + func (s *MuxServer) WithControllers(handlers ...Controller) *MuxServer + func (s *MuxServer) WithMiddlewares(fn ...mux.MiddlewareFunc) *MuxServer