handlers

package
v0.0.0-...-c0fd82f Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 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{}

Handler - Base handler struct with the handle method which will be invoked

func NewHandler

func NewHandler() *Handler

NewHandler - Returns Handler struct

func (Handler) CreateUser

func (h Handler) CreateUser()

CreateUser - creates a user and add to db

func (Handler) DeleteUser

func (h Handler) DeleteUser(id int)

DeleteUser - remove user from db

func (Handler) GetUser

func (h Handler) GetUser()

GetUser - retrieve user from db with specified id

func (Handler) GetUsers

func (h Handler) GetUsers()

GetUsers - get users list from db

func (*Handler) Handle

Handle - Handle method to be invoked by lambda

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHtpp - Serve method to handle server requests

func (Handler) UpdateUser

func (h Handler) UpdateUser()

UpdateUser - Updates the user from db

Jump to

Keyboard shortcuts

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