Documentation ¶
Index ¶
Constants ¶
View Source
const ( String FieldType = "string" Int = "int" Float = "float" Time = "time" )
Variables ¶
This section is empty.
Functions ¶
func NewMessageGenerator ¶
func NewMessageGenerator(content string) generator
Types ¶
type MessageJsonRepresentation ¶
type MessageJsonRepresentation struct {
Message Message `json:"message"`
}
type Rule ¶
type Rule struct { Format FieldFormat `json:"format"` Min interface{} `json:"min"` Max interface{} `json:"max"` StartsWith string `json"startsWith"` EndsWith string `json"endsWith"` }
Click to show internal directories.
Click to hide internal directories.