Versions in this module Expand all Collapse all v1 v1.0.6 Aug 16, 2023 Changes in this version type BaseHandler + func (h *BaseHandler) DomainGet(w http.ResponseWriter, r *http.Request) + func (h *BaseHandler) Inspect(w http.ResponseWriter, r *http.Request) + type CreateDomainRequest struct + Coverage string + Name string + Type string + type InspectRequestPayload struct + ClientIp string + Data string + type RPCLookupPayload struct + ClientIp string + Domain string + type UpdateDomainRequest struct + Coverage string + Name string + Type string v1.0.5 Mar 26, 2023 Changes in this version type BaseHandler + func (h *BaseHandler) SearchTypeDomain(domainName string) string v1.0.4 Mar 25, 2023 v1.0.3 Mar 22, 2023 Changes in this version + type DataResponse struct + ExecutionTimeMillis int64 + Type string v1.0.2 Mar 21, 2023 v1.0.1 Mar 19, 2023 v1.0.0 Mar 19, 2023 Changes in this version + func ReadRequest(w http.ResponseWriter, r *http.Request, data any) error + func WriteResponse(w http.ResponseWriter, statusCode int, payload any, headers ...http.Header) error + type BaseHandler struct + func NewBaseHandler(domainRepo models.DomainRepository, rootDomainRepo models.RootDomainRepository) *BaseHandler + func (h *BaseHandler) Data(w http.ResponseWriter, r *http.Request) + func (h *BaseHandler) DomainCreate(w http.ResponseWriter, r *http.Request) + func (h *BaseHandler) DomainDelete(w http.ResponseWriter, r *http.Request) + func (h *BaseHandler) DomainRead(w http.ResponseWriter, r *http.Request) + func (h *BaseHandler) DomainUpdate(w http.ResponseWriter, r *http.Request) + type ErrorResponse struct + Code int + Data any + Error bool + Message string + func NewErrorPayload(code int, message string, err error) *ErrorResponse + type Response struct + Data any + Error bool + Message string + func NewResponsePayload(message string, data interface{}) *Response