Documentation
¶
Index ¶
Constants ¶
View Source
const ( // YesiscanCookieNameBackends is the name of the cookie used to store // backend settings. YesiscanCookieNameBackends = "yesiscan_backends" // YesiscanCookieNameProfiles is the name of the cookie used to store // profiles settings. YesiscanCookieNameProfiles = "yesiscan_profiles" )
Variables ¶
This section is empty.
Functions ¶
func ReturnOutputHtml ¶
ReturnOutputHtml returns a string of output, formatted in html.
Types ¶
type Report ¶
type Report struct { Program string `json:"program"` Version string `json:"version"` // Uri is the input URI used for the scan. Uri string `json:"uri"` // Backends are a map of specified backens that users may enable. Backends map[string]bool `json:"backends"` // Profiles are a set of specified profile names that users may specify. Profiles map[string]bool `json:"profiles"` // Html is a rendered version of the core report content. // XXX: we might choose to store the data itself in the future... Html string `json:"html"` }
Report is the struct containing everything from scanning.
type Server ¶
type Server struct { Program string Version string Debug bool Logf func(format string, v ...interface{}) // Profiles is the list of profiles to allow. Either the names from // ~/.config/yesiscan/profiles/<name>.json or full paths. Profiles []string // Listen is the ip/port combination for the server to listen on. If it // is empty, then a default is used. For example, you might specify: // "127.0.0.1:8000" or just ":8000". Listen string // contains filtered or unexported fields }
Server is our web server struct.
func (*Server) Load ¶
TODO: consider adding a context.Context TODO: we have no auth on this at the moment, anyone can lookup a report
Click to show internal directories.
Click to hide internal directories.