mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-01 05:31:39 +00:00
Rename proxy to server for clarity
This commit is contained in:
12
server/valid.go
Normal file
12
server/valid.go
Normal file
@ -0,0 +1,12 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"gopkg.in/go-playground/validator.v9"
|
||||
)
|
||||
|
||||
var v = validator.New()
|
||||
|
||||
func validate(req interface{}) error {
|
||||
return errors.Wrap(v.Struct(req), "Validate")
|
||||
}
|
Reference in New Issue
Block a user