webui

package
v0.0.0-...-737531f Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	SearchTerm      string
	Error           string
	Summary         Summary
	Tables          []Table
	Tags            []string
	RelationshipNum int
	Token           string
	Success         string
	UserTags        []string
	SearchResults   []string
}

type Row

type Row struct {
	Fields []string
	Tag    string
	Links  int
}

type Summary

type Summary struct {
	Fields []SummaryField
	Total  int
	Title  string
}

type SummaryField

type SummaryField struct {
	Key      string
	Value    int
	AltTitle string
	Total    int
}

type Table

type Table struct {
	Title        string
	SearchTerm   string
	Heading      []string
	Rows         []Row
	Rollups      []int
	RollupCounts map[string]int
	AltTitle     string
}

type WebUI

type WebUI struct {
	Done chan bool
	// contains filtered or unexported fields
}

func (*WebUI) DeleteTag

func (wui *WebUI) DeleteTag(w http.ResponseWriter, r *http.Request)

Delete tag implements the /delete-tag endpoint

func (*WebUI) GetUserDefinedRow

func (wui *WebUI) GetUserDefinedRow(rel crawldb.Relationship) (string, []string)

GetUserDefinedRow returns, from an initial relationship, a complete user defined relationship row - in the order it is defined in the crawl config.

func (*WebUI) GetUserDefinedTable

func (wui *WebUI) GetUserDefinedTable(rel crawldb.Relationship) (Table, error)

GetUserDefinedRow returns, from an initial relationship, a complete user defined relationship row - in the order it is defined in the crawl config.

func (*WebUI) Index

func (wui *WebUI) Index(w http.ResponseWriter, r *http.Request)

Index implements the main search functionality of the webui

func (*WebUI) Listen

func (wui *WebUI) Listen(osc *config.OnionScanConfig, port int)

func (*WebUI) Save

func (wui *WebUI) Save(w http.ResponseWriter, r *http.Request)

Save implements the Saved Searches Feature

func (*WebUI) SavedSearches

func (wui *WebUI) SavedSearches(w http.ResponseWriter, r *http.Request)

SavedSearches provides the user with a list of searches they have saved.

func (*WebUI) Tag

func (wui *WebUI) Tag(w http.ResponseWriter, r *http.Request)

Tag implements the /tag endpoint.

Jump to

Keyboard shortcuts

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