# Functions
FromJSON deserializes the object from JSON string in an io.Reader to the given interface.
New creates a new SegmentifyDB service.
NewValidation creates a new Validation type.
ToJSON serializes the given interface into a string based JSON format.
# Variables
ErrIncorrectChangeUserSegmentsRequest is an error returned when a request to change user segments is incorrect.
ErrNoUserData is an error returned when there is no user data about segments for given userID.
ErrNoUserHistoryData is an error returned when there is no user history data about segments for given userID for specified period.
ErrSegmentAlreadyExists is an error returned when a segment already exists in the database.
ErrSegmentDeleted is an error returned when requested segment was marked as deleted.
ErrSegmentNotFound is an error returned when a segment can not be found in the database.
# Structs
SegmentifyDB is a service that works with segments in the database.
Validation wraps the go-playground/validator.
ValidationError wraps the validators FieldError, so we do not expose this to out code.
# Type aliases
ValidationErrors is a collection of ValidationError.