Documentation ¶
Index ¶
- type IpTransformer
- func (it *IpTransformer) ConfigOptions() []utils.Option
- func (it *IpTransformer) Description() string
- func (it *IpTransformer) RawTransform(datas []string) ([]string, error)
- func (it *IpTransformer) SampleConfig() string
- func (it *IpTransformer) Stage() string
- func (it *IpTransformer) Stats() utils.StatsInfo
- func (it *IpTransformer) Transform(datas []sender.Data) ([]sender.Data, error)
- func (it *IpTransformer) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpTransformer ¶
type IpTransformer struct { StageTime string `json:"stage"` Key string `json:"key"` DataPath string `json:"data_path"` // contains filtered or unexported fields }
更全的免费数据可以在ipip.net下载
func (*IpTransformer) ConfigOptions ¶ added in v1.3.2
func (it *IpTransformer) ConfigOptions() []utils.Option
func (*IpTransformer) Description ¶
func (it *IpTransformer) Description() string
func (*IpTransformer) RawTransform ¶
func (it *IpTransformer) RawTransform(datas []string) ([]string, error)
func (*IpTransformer) SampleConfig ¶
func (it *IpTransformer) SampleConfig() string
func (*IpTransformer) Stage ¶
func (it *IpTransformer) Stage() string
func (*IpTransformer) Stats ¶
func (it *IpTransformer) Stats() utils.StatsInfo
func (*IpTransformer) Type ¶ added in v1.3.0
func (it *IpTransformer) Type() string
Click to show internal directories.
Click to hide internal directories.