demo

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerHello

func HandlerHello() *goddAPI.HTTP

HandlerHello API

func HandlerHello2

func HandlerHello2() *goddAPI.HTTP

HandlerHello2 API

func Router

func Router(app *fiber.App, path string) *goddMicroService.MicroService

Router Func

Types

type Job

type Job struct {
	Type   string `json:"type"   default:"none" validate:"required,min=3,max=32"`
	Salary int    `json:"salary" default:"200"  validate:"required,number"`
}

Job struct

type User

type User struct {
	Name     string `json:"name"      default:"john" validate:"required,min=3,max=32"`
	IsActive bool   `json:"is_active" default:"true" validate:"required,eq=True|eq=False"`
	Email    string `json:"email"                    validate:"required,email,min=6,max=32"`
	Job      Job    `json:"job"                      validate:"dive"`
}

User struct

Jump to

Keyboard shortcuts

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