Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶
func NewValidator(arg *validator.Validate) *customValidator
func Redirect ¶
func Redirect() middleware.RedirectConfig
Types ¶
type CustomBinder ¶
type CustomBinder struct{}
func (*CustomBinder) Bind ¶
func (cb *CustomBinder) Bind(i interface{}, c echo.Context) (err error)
type Server ¶
type Server struct { Store db.PostgresStore Redis redis.Store Config util.Config Auth *Util Router *echo.Echo Oauth oauth.OauthService Token token.Maker FileString string apiutil.UtilTools gcp.GCPService // contains filtered or unexported fields }
func Newserver ¶
func Newserver(c util.Config, store db.PostgresStore, redisStore redis.Store, service gcp.GCPService) (*Server, error)
func (*Server) StartHTTPS ¶
func (*Server) Testrouterhandle ¶
func (s *Server) Testrouterhandle()
func (*Server) TimeoutPost ¶
func (s *Server) TimeoutPost() middleware.TimeoutConfig
type Util ¶
type Util struct { Middleware *CustomBinder Validator *customValidator }
func (*Util) HTTPErrorHandler ¶
Click to show internal directories.
Click to hide internal directories.