Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadRequest = NewError("Body invalid")
)
Functions ¶
func CheckDnsMsg ¶
func FileServer ¶
func FileServer(router *chi.Mux)
func MakeDnsMsg ¶
Types ¶
type HTTPError ¶
type HTTPError struct {
Message string `json:"message"`
}
HTTPError is custom HTTP error for API
type RouterHandler ¶
type RouterHandler func(r chi.Router)
type Traffic ¶
type Traffic struct { Proxy TrafficItem `json:"proxy"` Direct TrafficItem `json:"direct"` }
type TrafficItem ¶
Click to show internal directories.
Click to hide internal directories.