ui

package
v0.0.0-...-708b000 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoints = []sources.APIQueryUnit{
	{Name: "Shodan", URL: "https://internetdb.shodan.io/{ip}", Model: &sources.ShodanResponse{}},
	{Name: "GreyNoise", URL: "https://api.greynoise.io/v3/community/{ip}", Model: &sources.GreyNoiseCommunityResponse{}},
	{Name: "IP API", URL: "https://api.ipapi.is/?q={ip}", Model: &sources.IPAPIResponse{}},
	{Name: "IP Whois", URL: "https://ipwho.is/{ip}", Model: &sources.IPInfoResponse{}},
	{Name: "Stop Forum Spam", URL: "https://api.stopforumspam.org/api?json&ip={ip}", Model: &sources.StopForumSpamResponse{}},
}

Functions

This section is empty.

Types

type Model

type Model struct {
	Results         map[string]sources.Result
	Done            int
	Summary         string
	Choice          int
	ViewingResponse bool
	Spinner         spinner.Model
	Viewport        viewport.Model
	Ready           bool
	Ip              string
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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