Documentation
¶
Index ¶
- type IpInfoHandler
- func (h *IpInfoHandler) GetHeaderByName(w http.ResponseWriter, r *http.Request)
- func (h *IpInfoHandler) GetIpInfo(w http.ResponseWriter, r *http.Request)
- func (h *IpInfoHandler) GetIpInfoHtml(w http.ResponseWriter, r *http.Request)
- func (h *IpInfoHandler) Index(w http.ResponseWriter, r *http.Request)
- type Middlware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpInfoHandler ¶
type IpInfoHandler struct {
Logger utils.CustomJsonLogger
Service service.IpInfoService
}
func NewIpInfoHandler ¶
func NewIpInfoHandler(logger utils.CustomJsonLogger, svc service.IpInfoService) IpInfoHandler
func (*IpInfoHandler) GetHeaderByName ¶
func (h *IpInfoHandler) GetHeaderByName(w http.ResponseWriter, r *http.Request)
func (*IpInfoHandler) GetIpInfo ¶
func (h *IpInfoHandler) GetIpInfo(w http.ResponseWriter, r *http.Request)
func (*IpInfoHandler) GetIpInfoHtml ¶
func (h *IpInfoHandler) GetIpInfoHtml(w http.ResponseWriter, r *http.Request)
func (*IpInfoHandler) Index ¶
func (h *IpInfoHandler) Index(w http.ResponseWriter, r *http.Request)
type Middlware ¶
type Middlware struct {
Logger utils.CustomJsonLogger
}
func NewMiddleware ¶
func NewMiddleware(logger utils.CustomJsonLogger) Middlware
Click to show internal directories.
Click to hide internal directories.