entity

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedProxy

type AdvancedProxy struct {
	Proxy      string   `json:"proxy" yaml:"proxy"`
	IP         string   `json:"ip" yaml:"ip"`
	Port       string   `json:"port" yaml:"port"`
	TimeTaken  float64  `json:"time_taken" yaml:"time_taken"`
	CheckedAt  string   `json:"checked_at" yaml:"checked_at"`
	Categories []string `json:"categories" yaml:"categories"`
}

type Proxy

type Proxy struct {
	Category  string  `json:"category" yaml:"category"`
	Proxy     string  `json:"proxy" yaml:"proxy"`
	IP        string  `json:"ip"  yaml:"ip"`
	Port      string  `json:"port" yaml:"port"`
	TimeTaken float64 `json:"time_taken" yaml:"time_taken"`
	CheckedAt string  `json:"checked_at" yaml:"checked_at"`
}

type ProxyXMLAdvancedView

type ProxyXMLAdvancedView struct {
	XMLName xml.Name `xml:"Proxies"`
	Proxies []Proxy  `xml:"Proxy"`
}

type ProxyXMLAllAdvancedView

type ProxyXMLAllAdvancedView struct {
	XMLName xml.Name        `xml:"Proxies"`
	Proxies []AdvancedProxy `xml:"Proxy"`
}

type ProxyXMLClassicView

type ProxyXMLClassicView struct {
	XMLName xml.Name `xml:"Proxies"`
	Proxies []string `xml:"Proxy"`
}

type Source

type Source struct {
	Method    string `json:"method"`
	Category  string `json:"category"`
	URL       string `json:"url"`
	IsChecked bool   `json:"is_checked"`
}

func (*Source) UnmarshalJSON

func (s *Source) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL