Rename proxy to server for clarity

This commit is contained in:
Ethan Frey
2017-02-28 21:53:05 +01:00
parent 6389d208cc
commit 0c92c8516f
8 changed files with 36 additions and 88 deletions

12
server/valid.go Normal file
View 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")
}