web

package
v0.0.0-...-a116991 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(storage *storage.Storage) *Handler

func (Handler) Listen

func (h Handler) Listen() <-chan struct{}

func (Handler) Serve

func (h Handler) Serve(l net.Listener) <-chan struct{}

type TransacaoPostRequest

type TransacaoPostRequest struct {
	Valor     int    `json:"valor"`
	Tipo      string `json:"tipo"`
	Descricao string `json:"descricao"`
}

func (TransacaoPostRequest) Validate

func (t TransacaoPostRequest) Validate() error

type TransacaoPostResponse

type TransacaoPostResponse struct {
	Limite int `json:"limite"`
	Saldo  int `json:"saldo"`
}

Jump to

Keyboard shortcuts

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