package
1.0.0
Repository: https://github.com/chanioxaris/json-server.git
Documentation: pkg.go.dev

# Functions

NewFile returns a new file instance.
NewMock returns a new mock instance.

# Variables

ErrBadRequest returns an error when an unexpected request been processed.
ErrInternalServerError returns an error when an unexpected error occurs.
ErrResourceAlreadyExists returns an error when a resource already exists in storage.
ErrResourceNotFound returns an error when a requested resource not found in storage.

# Structs

File implements the storage interface, and uses a file as 'database'.
No description provided by the author

# Interfaces

Storage interface to handle storage operations.

# Type aliases

Database represents the structure of the storage contents.
Resource represents the structure of a singe resource in storage.