Documentation ¶
Index ¶
- func NewComponent() component.Base
- type Validator
- func (d *Validator) Decode(in payload.Bytes, data payload.Data) (payload.DecodedImage, response.Response)
- func (d *Validator) DecodeStream(in payload.Stream, data payload.Data) (payload.DecodedImage, response.Response)
- func (d *Validator) Init(config cfg.Config, logger zap.SugaredLogger) error
- func (d *Validator) Process(in payload.DecodedImage, data payload.Data) response.Response
- func (d *Validator) Start() error
- func (d *Validator) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator struct defines file type
func (*Validator) Decode ¶
func (d *Validator) Decode(in payload.Bytes, data payload.Data) (payload.DecodedImage, response.Response)
Decode Decodes an image reading only the necessary bytes to validate the image
func (*Validator) DecodeStream ¶
func (d *Validator) DecodeStream(in payload.Stream, data payload.Data) (payload.DecodedImage, response.Response)
DecodeStream Decodes an image reading only the necessary bytes to validate the image
Click to show internal directories.
Click to hide internal directories.