package
0.0.0-20241222215834-09a60126efae
Repository: https://github.com/tucats/ego.git
Documentation: pkg.go.dev

# Functions

AcceptedMediaType validates the media type in the "Accept" header for this request against a list of valid media types.
Decrypt decrypts a string using a password.
Encrypt encrypts a string using a password.
ErrorResponse returns an error response to the client with the given session ID, message, and status code.
Function to format a duration.
Hash creates a hash string from a key string.
Hostname gets a short form of the host namme (i.e.
InList is a support function that checks to see if a string matches any of a list of other strings.
ConvertMapKeys returns a sorted list of keys from a map where the keys are all strings.
MakeBaseCollection creates a base collection object for the current server instance that can be returend as a response to a client request.
MakeServerInfo creates a server info object for the current server instance and the given session ID value.
Given a list of strings, convert them to a sorted list in Ego array format.
NewSealedString converts a simple text string into a sealed string object, that meets the seasled string interface requirements.
ParseDuration parses a duration string and returns the corresponding time.Duration.
Seal encrypts the given text and returnes it as a sealed string object.
SessionLog is used to take a multi-line message for the server log, and insert prefixes on each line with the session number so the log lines will be tagged with the appropriate session identifier, and can be read with the server log query for a specific session.
ValidateParameters checks the parameters in a previously-parsed URL against a map describing the expected parameters and types.

# Constants

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

# Type aliases

No description provided by the author