package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 1, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 26
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrUnauthorized = newError("Unauthorized")
ErrBadRequest = newError("Body invalid")
)
type HTTPError struct {
Code int64 `json:"Code"`
Msg string `json:"Msg"`
}
HTTPError is custom HTTP error for API
type Log struct {
Type string `json:"Type"`
Payload string `json:"Payload"`
}
type Traffic struct {
Up int64 `json:"Up"`
Down int64 `json:"Down"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.