Documentation
¶
Overview ¶
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2022 ZeYanLin <zeyanlin@outlook.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Config(subFn string)
- func Examples(s string) string
- func Execute()
- func OutputDefaultJSON(r rootOutput)
- func OutputDefaultString(r rootOutput)
- func OutputDefaultYAML(r rootOutput)
- func PrintJSON(i interface{})
- func PrintYAML(i interface{})
- func ValidDomain(i interface{}) bool
- func ValidFile(f string) bool
- func ValidURL(u string) bool
- type GeoIPBatch
- type GeoIPSingle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputDefaultJSON ¶ added in v0.0.12
func OutputDefaultJSON(r rootOutput)
func OutputDefaultString ¶ added in v0.0.12
func OutputDefaultString(r rootOutput)
func OutputDefaultYAML ¶ added in v0.0.12
func OutputDefaultYAML(r rootOutput)
func ValidDomain ¶ added in v0.0.12
func ValidDomain(i interface{}) bool
If i is a domain return true.
Types ¶
type GeoIPBatch ¶ added in v0.0.7
type GeoIPBatch []GeoIPSingle
func (GeoIPBatch) JSON ¶ added in v0.0.11
func (g GeoIPBatch) JSON()
func (GeoIPBatch) Request ¶ added in v0.0.10
func (GeoIPBatch) Request(geoipBatch []string) (*GeoIPBatch, error)
func (GeoIPBatch) String ¶ added in v0.0.10
func (g GeoIPBatch) String()
func (GeoIPBatch) YAML ¶ added in v0.0.11
func (g GeoIPBatch) YAML()
type GeoIPSingle ¶ added in v0.0.7
type GeoIPSingle struct {
Continent string `json:"continent"`
Country string `json:"country"`
CountryCode string `json:"countryCode"`
RegionName string `json:"regionName"`
City string `json:"city"`
District string `json:"district"`
Timezone string `json:"timezone"`
Currency string `json:"currency"`
ISP string `json:"isp"`
Org string `json:"org"`
As string `json:"as"`
Asname string `json:"asname"`
Mobile bool `json:"mobile"`
Proxy bool `json:"proxy"`
Hosting bool `json:"hosting"`
Query string `json:"query"`
}
func (GeoIPSingle) JSON ¶ added in v0.0.11
func (g GeoIPSingle) JSON()
func (GeoIPSingle) Request ¶ added in v0.0.10
func (GeoIPSingle) Request(geoipInput string) (*GeoIPSingle, error)
func (GeoIPSingle) String ¶ added in v0.0.10
func (g GeoIPSingle) String()
func (GeoIPSingle) YAML ¶ added in v0.0.11
func (g GeoIPSingle) YAML()