server

package
v0.0.0-...-ba8bc2d Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 8 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 {
	Router *gin.Engine
	Store  *store.Store
}

func NewAPI

func NewAPI() *API

func (*API) ConfigureRouter

func (api *API) ConfigureRouter()

func (*API) CreateNote

func (api *API) CreateNote() gin.HandlerFunc

CREATE (POST)

func (*API) CreateUser

func (api *API) CreateUser() gin.HandlerFunc

CREATE (POST)

func (*API) DeleteNoteById

func (api *API) DeleteNoteById() gin.HandlerFunc

DELETE (DELETE)

func (*API) DeleteUserById

func (api *API) DeleteUserById() gin.HandlerFunc

DELETE (DELETE)

func (*API) GetNotesByAuthor

func (api *API) GetNotesByAuthor() gin.HandlerFunc

GET (GET)

func (*API) GetNotesById

func (api *API) GetNotesById() gin.HandlerFunc

GET (GET) ID

func (*API) GetUserByLogin

func (api *API) GetUserByLogin() gin.HandlerFunc

GET (GET)

func (*API) Index

func (api *API) Index() gin.HandlerFunc

func (*API) Start

func (api *API) Start() error

func (*API) UpdateNoteById

func (api *API) UpdateNoteById() gin.HandlerFunc

UPDATE (PUT)

func (*API) UpdateUserById

func (api *API) UpdateUserById() gin.HandlerFunc

UPDATE (PUT)

Jump to

Keyboard shortcuts

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