# Functions
ConvertPaginationToSQLExpression converts service.Pagination to SQL expression.
NewPagination creates new service.Pagination with default maximum limit.
NewPGStorage returns a new instance of PGStorage.
NewService returns new instance of SnippetService.
NewTransport creates a new Transport instance.
# Variables
ErrNotFound error used to signal higher level about sql.ErrNoRows error.
# Structs
CreateSnippetRequest represents a request struct for POST /snippets method.
ListSnippetsRequest represents a request struct for GET /snippets?limit=<x>&offset=<y> method.
ListSnippetsResponse represents a response 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.
SnippetResponse represents a common snippet-response struct.
SnippetService represents service struct.
Transport is a struct that holds all endpoints for snippets.