Documentation ¶
Index ¶
- Constants
- type GRPCData
- type HTTPClient
- type Scanner
- func (s *Scanner) BenignPreCheck(url string) (blocked bool, statusCode int, err error)
- func (s *Scanner) CheckBlocking(body []byte, statusCode int) (bool, error)
- func (s *Scanner) CheckPass(body []byte, statusCode int) (bool, error)
- func (s *Scanner) PreCheck(url string) (blocked bool, statusCode int, err error)
- func (s *Scanner) Run(ctx context.Context, url string, blockConn bool) error
- func (s *Scanner) WSPreCheck(url string) (available, blocked bool, err error)
Constants ¶
View Source
const GRPCServerDetectionTimeout = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCData ¶
type GRPCData struct {
// contains filtered or unexported fields
}
func (*GRPCData) CheckAvailability ¶
func (*GRPCData) SetAvailability ¶
func (*GRPCData) UpdateGRPCData ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(cfg *config.Config) (*HTTPClient, error)
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) BenignPreCheck ¶
func (*Scanner) CheckBlocking ¶
Click to show internal directories.
Click to hide internal directories.