Documentation ¶
Index ¶
Constants ¶
View Source
const ( MODE_HTTP = iota + 1 MODE_SOCKET )
View Source
const ( SPACE = " " COLON = ":" )
Variables ¶
View Source
var ( HTTPVer = "1.1" HTTPSVer = "1.1" HTTP = "http" HTTPS = "https" MethodSocket = "SOCKET" MethodAbsSocket = "ABSSOCKET" AllSupportedConn = []string{MethodSocket, http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete, http.MethodPatch} Help = `` /* 357-byte string literal not displayed */ )
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { // Verbose to turn on/off the verbose output mode Verbose bool // Method denotes the http method the current http request is using Method string // Data denotes the payload to be sent to the server parsed via command line Data string // Headers denotes the header information to be sent to the server Headers string // UnixSocket flag sets scour into unixsocket mode UnixSocket bool // InteractiveMode opens scour console where requests can be sent and received interactively InteractiveMode bool // SocketLoc saves the path to the socket to be created SocketLoc string }
Flags struct holds the flag values passed in via the commandline to Scour.
func (*Flags) ValidateAll ¶
ValidateAll implements validation for Flags values
Click to show internal directories.
Click to hide internal directories.