Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONSchemaErr ¶
type JSONSchemaErr struct { Field string `json:"field"` Type string `json:"type"` Description string `json:"description"` }
JSONSchemaErr describe error in schema validation.
type JSONValidationResult ¶
type JSONValidationResult struct { Valid bool Errors []JSONSchemaErr }
JSONValidationResult describe result of the schema validation.
func ValidateJSON ¶
func ValidateJSON(root, schema, input string) (*JSONValidationResult, error)
ValidateJSON check a JSON string against a JSON schema. See: http://json-schema.org/
type Kafka ¶
type Kafka struct {
Producer sarama.SyncProducer
}
Kafka handle Kafka connection. The producer use a WaitForAll strategy to perform message ack.
type RequestLogger ¶
RequestLogger wrap logrus to a compliant negroni logger. Log level can be defined through Level.
func (RequestLogger) Printf ¶
func (rl RequestLogger) Printf(format string, v ...interface{})
Printf to logrus.
Click to show internal directories.
Click to hide internal directories.