Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateJSONFormat ¶
ValidateJSONFormat returns a errors if the given string is not a valid JSON-formatted kayvee log line.
Types ¶
type InvalidJSONError ¶
type InvalidJSONError struct {
// contains filtered or unexported fields
}
InvalidJSONError is returned by `ValidateJSONFormat` for log lines that aren't valid JSON objects.
func (*InvalidJSONError) Error ¶
func (e *InvalidJSONError) Error() string
type InvalidValueError ¶
type InvalidValueError struct { Field string Value interface{} }
InvalidValueError is returned for log lines containing a field with an invalid value.
func (*InvalidValueError) Error ¶
func (e *InvalidValueError) Error() string
type InvalidValueTypeError ¶
InvalidValueTypeError is returned for log lines containing a field with an invalid value type.
func (*InvalidValueTypeError) Error ¶
func (e *InvalidValueTypeError) Error() string
type MissingRequiredFieldError ¶
type MissingRequiredFieldError struct {
Field string
}
MissingRequiredFieldError is returned for log lines that don't contain a required field. NOTE: Certain fields are only required for specific log types.
func (*MissingRequiredFieldError) Error ¶
func (e *MissingRequiredFieldError) Error() string
Click to show internal directories.
Click to hide internal directories.