Documentation
¶
Index ¶
- func BuildCookieHeader(name string, value string, expires *time.Time, domain string, path string, ...) string
- func NewError(gc *gin.Context, status int, err error)
- type Client
- func (c *Client) Delete(target string, headers map[string]string, response interface{}) error
- func (c *Client) Get(target string, headers map[string]string, response interface{}) error
- func (c *Client) Patch(target string, headers map[string]string, request interface{}, ...) error
- func (c *Client) Post(target string, headers map[string]string, request interface{}, ...) error
- func (c *Client) PostForm(target string, headers map[string]string, request map[string]string, ...) error
- func (c *Client) Put(target string, headers map[string]string, request interface{}, ...) error
- type ClientOptions
- type DummyHealthCheckHandler
- type HTTPError
- type Handler
- type Server
- type ServerOptions
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientOptions ¶
type ClientOptions struct { Timeout int `json:"timeout" yaml:"timeout"` CAFile string `json:"caFile" yaml:"caFile"` }
ClientOptions http client options
type DummyHealthCheckHandler ¶
type DummyHealthCheckHandler struct { }
DummyHealthCheckHandler dummy health check handler
func (*DummyHealthCheckHandler) Build ¶
func (h *DummyHealthCheckHandler) Build(engine *gin.Engine)
Build build health check handler
func (*DummyHealthCheckHandler) Healthz ¶
func (h *DummyHealthCheckHandler) Healthz(gc *gin.Context)
Healthz health check api @Produce json @Summary health check @Description check status @Success 200 {object} StatusResponse @Failure 400 {object} TTPError @Failure 503 {object} HTTPError @Router /healthz [get]
type HTTPError ¶
type HTTPError struct { Code int `json:"code" example:"400"` Message string `json:"message" example:"status bad request"` }
HTTPError error response
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server http Server
type ServerOptions ¶
type ServerOptions struct { Host string `json:"host" yaml:"host"` Port int `json:"port" yaml:"port"` CAFile string `json:"caFile" yaml:"caFile"` PrivateKeyFile string `json:"privateKetFile" yaml:"privateKeyFile"` PublicCertFile string `json:"publicCertFile" yaml:"publicCertFile"` EnableProfiling bool `json:"enableProfiling" yaml:"enableProfiling"` }
Options http server options
type StatusResponse ¶
type StatusResponse struct {
Message string `json:"message"`
}
StatusResponse status response
Click to show internal directories.
Click to hide internal directories.