Documentation
¶
Index ¶
Constants ¶
View Source
const ( ItemTypeProxy = iota ItemTypeDelayTest )
Variables ¶
View Source
var Delays sync.Map
Functions ¶
This section is empty.
Types ¶
type AdapterType ¶
type AdapterType C.AdapterType
func (AdapterType) Is ¶
func (a AdapterType) Is(v C.AdapterType) bool
func (*AdapterType) UnmarshalJSON ¶
func (a *AdapterType) UnmarshalJSON(b []byte) error
type Delay ¶
type Delay struct {
Delay HumanDelay
}
type HumanBytes ¶
type HumanBytes string
func (*HumanBytes) UnmarshalJSON ¶
func (h *HumanBytes) UnmarshalJSON(d []byte) error
type HumanDelay ¶
type HumanDelay string
func (*HumanDelay) UnmarshalJSON ¶
func (h *HumanDelay) UnmarshalJSON(d []byte) error
type Proxy ¶
type Proxy struct { All []ProxyName `json:"all"` Type AdapterType `json:"type,omitempty"` Now string `json:"now,omitempty"` }
type ProxyName ¶
func (*ProxyName) UnmarshalJSON ¶
type Traffic ¶
type Traffic struct { Up HumanBytes `json:"up"` Down HumanBytes `json:"down"` }
Click to show internal directories.
Click to hide internal directories.