service

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 2 Imported by: 0

README

service

GO http service wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (e *echo.Echo)

New creates and returns service instance

Types

type Custom

type Custom struct {
	// contains filtered or unexported fields
}

Custom wraper for validator

func NewValidator

func NewValidator() *Custom

New func to create Custom validator object

func (*Custom) Validate

func (cv *Custom) Validate(i interface{}) error

Validate function to comply with the interface of echo

type Validator

type Validator interface {
	Validate(i interface{}) error
}

Validator is the interface that wraps the Validate function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL