odin

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OdinAPIURL = "https://api.odin.io/v1/hosts/search"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct{}

func (*Agent) Name

func (agent *Agent) Name() string

func (*Agent) Query

func (agent *Agent) Query(session *sources.Session, query *sources.Query) (chan sources.Result, error)

type HostData

type HostData struct {
	ScanID        int64     `json:"scan_id"`
	IP            string    `json:"ip"`
	IsIPv4        bool      `json:"is_ipv4"`
	IsIPv6        bool      `json:"is_ipv6"`
	Services      []Service `json:"services"`
	LastUpdatedAt string    `json:"last_updated_at"`
}

type OdinRequest

type OdinRequest struct {
	Limit int       `json:"limit"`
	Query string    `json:"query"`
	Start []float64 `json:"start,omitempty"`
}

type OdinResponse

type OdinResponse struct {
	Success    bool       `json:"success"`
	Pagination Pagination `json:"pagination"`
	Data       []HostData `json:"data"`
}

type Pagination

type Pagination struct {
	Start []float64 `json:"start"`
	Last  []float64 `json:"last"`
	Limit int       `json:"limit"`
	Total int       `json:"total"`
}

type Service

type Service struct {
	Port          int    `json:"port"`
	Protocol      string `json:"protocol"`
	Name          string `json:"name"`
	LastUpdatedAt string `json:"last_updated_at"`
}

Jump to

Keyboard shortcuts

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