package
4.10.10+incompatible
Repository: https://github.com/mattermost/platform.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CopyDir will copy a directory and all contained files and directories.
CopyFile will copy a file from src path to dst path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DON'T USE THIS Modify the level on the app logger.
DON'T USE THIS Modify the level on the app logger.
No description provided by the author
EnsureConfigFile will attempt to locate a config file with the given name.
ExtractTarGz takes in an io.Reader containing the bytes for a .tar.gz file and a destination string to extract to.
No description provided by the author
FindConfigFile attempts to find an existing configuration file.
FindDir looks for the given directory in nearby ancestors, falling back to `./` if not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsOwnIP handles the special case that a request might be made to the public IP of the host which on Linux is routed directly via the loopback IP to any listening sockets, effectively bypassing host-based firewalls such as firewalld.
No description provided by the author
No description provided by the author
IsReservedIP checks whether the target IP belongs to reserved IP address ranges to avoid SSRF attacks to the internal network of the Mattermost server.
LoadConfig will try to search around for the corresponding config file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHTTPClient returns a variation the default implementation of Client.
New creates an LRU of the given size.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PathTraversesUpward will return true if the path attempts to traverse upwards by using ".." in the path.
No description provided by the author
No description provided by the author
Random selection of text for post.
No description provided by the author
ReadConfig reads and parses the given configuration.
ReadConfigFile reads and parses the configuration at the given file path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
allows for sending an email with attachments and differing MIME/SMTP recipients.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this functions loads translations from filesystem and assign english while loading server config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
Lovely giberish for all to use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
Strings that should pass as acceptable emails.
Strings that should pass as acceptable team names.
Strings that should pass as acceptable posts.
No description provided by the author
No description provided by the author
# Structs
Cache is a thread-safe fixed size LRU cache.
No description provided by the author
No description provided by the author
No description provided by the author
OutputJSONMessage holds the received Message fto test sending emails (inbucket).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
OutputJSONHeader holds the received Header to test sending emails (inbucket).