# Functions
ConvertPaginationToSQLExpression converts service.Pagination to SQL expression.
MakeCreateSnippetEndpoint creates a new go-kit Endpoint for POST /snippets method.
MakeDeleteSnippetEndpoint creates a new go-kit Endpoint for DELETE /snippets/{snippet_id} method.
MakeGetSnippetEndpoint creates a new go-kit Endpoint for GET /snippets/{snippet_id} method.
MakeListSnippetsEndpoint creates a new go-kit Endpoint for GET /snippets method.
MakeSnippetsHandler initialize all endpoints for route /snippets.
NewPagination creates new service.Pagination with default maximum limit.
NewPGStorage returns a new instance of PGStorage.
NewService returns new instance of SnippetService.
# Variables
ErrNotFound error used to signal higher level about sql.ErrNoRows error.
# Structs
ListSnippetsRequest represents a request struct for GET /snippets?limit=<x>&offset=<y> method.
PGStorage implements storage interface and provides methods to manipulate data in PostgreSQL storage.
Snippet model struct.
SnippetService represents service struct.