Documentation ¶ Overview ¶ Package http provides an HTTP validator for the Cloudprober's validator framework. Index ¶ type Validator func (v *Validator) Init(config interface{}, l *logger.Logger) error func (v *Validator) Validate(input interface{}, unused []byte) (bool, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Validator ¶ type Validator struct { // contains filtered or unexported fields } Validator implements a validator for HTTP responses. func (*Validator) Init ¶ func (v *Validator) Init(config interface{}, l *logger.Logger) error Init initializes the HTTP validator. func (*Validator) Validate ¶ func (v *Validator) Validate(input interface{}, unused []byte) (bool, error) Validate the provided input and return true if input is valid. Validate expects the input to be of the type: *http.Response. Note that it doesn't use the string input, it's part of the function signature to satisfy Validator interface. Source Files ¶ View all Source files http.go Directories ¶ Show internal Expand all Path Synopsis proto Click to show internal directories. Click to hide internal directories.