api

package
v0.0.0-...-97fec7c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Echo *echo.Echo
	DB   *db.StudentHandler
}

func NewServer

func NewServer() *API

func (*API) ConfigureRoutes

func (api *API) ConfigureRoutes()

func (*API) Start

func (api *API) Start() error

type StudentRequest

type StudentRequest struct {
	Name   string `json:"name"`
	CPF    int    `json:"cpf"`
	Email  string `json:"email"`
	Age    int    `json:"age"`
	Active *bool  `json:"active"` // using bool as pointer to force true/false
}

func (*StudentRequest) Validate

func (s *StudentRequest) Validate() error

Jump to

Keyboard shortcuts

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