# Functions
New instance of RW-Locker.
# Constants
ModePreferReader makes the writer and reader to have equal priority.
ModePreferWriter makes the writer to have higher priority over the reader.
ModeUndefined will trigger default option to be used.
# Variables
ErrConnection is returned by Locker methods in case of problems with redis.
ErrInterrupted is returned by Locker methods if they were interrupted via Context.
ErrNotReleased is returned by locker methods if lock was not released.
ErrTimeout is returned by Locker methods if timeout was specified and was exceeded while waiting for lock.
ErrUnknownMode is return by locker methods in case the lock was set to unknown mode.
# Interfaces
Locker allows to execute given functions at reader or writer access privilege.
# Type aliases
Mode of the lock behavior.