Documentation ¶
Index ¶
- type Client
- func (c *Client) CommonDoFromRequest(req *http.Request, output interface{}) (int, error)
- func (c *Client) CommonDoWithForm(method, path string, headers map[string]string, input url.Values) (int, []byte, error)
- func (c *Client) CommonDoWithJSON(method, path 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
- type Controller
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CommonDoFromRequest ¶
func (*Client) CommonDoWithForm ¶
func (*Client) CommonDoWithJSON ¶
func (*Client) MakeJSONRequest ¶
func (*Client) WithBaseURL ¶
type Controller ¶
type MuxServer ¶
type MuxServer struct {
// contains filtered or unexported fields
}
func NewMuxServer ¶
func (*MuxServer) WithAdditionalHandlers ¶
func (*MuxServer) WithControllers ¶
func (s *MuxServer) WithControllers(handlers ...Controller) *MuxServer
func (*MuxServer) WithMiddlewares ¶
func (s *MuxServer) WithMiddlewares(fn ...mux.MiddlewareFunc) *MuxServer
Click to show internal directories.
Click to hide internal directories.