created a plugin for schema validation and related unit test
This commit is contained in:
11
plugins/plugin.go
Normal file
11
plugins/plugin.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import "context"
|
||||
|
||||
type Validator interface {
|
||||
Validate(ctx context.Context, b []byte) error //context parameter
|
||||
}
|
||||
|
||||
type ValidatorProvider interface {
|
||||
New(p string) (Validator, error)
|
||||
}
|
||||
Reference in New Issue
Block a user