types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause, MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveRequest

type ApproveRequest struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type ByIdRequest

type ByIdRequest struct {
	ID uint `json:"id"`
}

type ByNameRequest

type ByNameRequest struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type DnsRequest

type DnsRequest struct {
	gorm.Model
	ListInfo
	Time       time.Time `json:"time"`
	FromIP     string    `json:"fromip"`
	Query      string    `json:"query"`
	MatchQuery string    `json:"matchquery"`
	LastSeen   time.Time `json:"lastseen"`
	Count      uint      `json:"count"`
}

type HttpClassificationRequest

type HttpClassificationRequest struct {
	ID    uint   `json:"id"`
	Class string `json:"string"`
	Allow bool   `json:"allow"`
}

type HttpRequest

type HttpRequest struct {
	gorm.Model
	ListInfo
	Time     time.Time `json:"time"`
	Type     string    `json:"type"`
	FromIP   string    `json:"fromip"`
	ToHost   string    `json:"tohost"`
	Method   string    `json:"method"`
	URL      string    `json:"url"`
	MatchURL string    `json:"matchurl"`
	Headers  string    `json:"headers"`
	LastSeen time.Time `json:"lastseen"`
	Count    uint      `json:"count"`
}

type ListInfo

type ListInfo struct {
	Class   string `json:"class"`
	Allowed bool   `json:"allowed"`
	NoScan  bool   `json:"noscan"`
}

type Repository

type Repository struct {
	gorm.Model
	FailureMsg  string    `json:"failuremsg"`
	LastSuccess time.Time `json:"lastsuccess"`
	LastFailure time.Time `json:"lastfailure"`
	Type        string    `json:"type"`
	URL         string    `json:"url"`
	MatchURL    string    `json:"matchurl"`
	Hash        string    `json:"hash" gorm:"unique"`
	Method      string    `json:"method"`
	Headers     string    `json:"headers"`
	Recursive   bool      `json:"recursive"`
	Host        string    `json:"host"`
	OuterPath   string    `json:"outerpath"`
	InnerPath   string    `json:"innerpath"`
	Username    string    `json:"username"`
	Password    string    `json:"password"`
	Anonymous   bool      `json:"anonymous"`
	Available   bool      `json:"available"`
}

Jump to

Keyboard shortcuts

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