Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONTypeObject JSONType = "object" JSONTypeString JSONType = "string" JSONTypeNumber JSONType = "number" JSONTypeArray JSONType = "array" JSONTypeBoolean JSONType = "boolean" JSONTypeNull JSONType = "null" AvroTypeNull AvroType = "null" AvroTypeBoolean AvroType = "boolean" AvroTypeInteger AvroType = "int" AvroTypeLong AvroType = "long" AvroTypeFloat AvroType = "float" AvroTypeDouble AvroType = "double" AvroTypeBytes AvroType = "bytes" AvroTypeString AvroType = "string" AvroTypeRecord AvroType = "record" AvroTypeArray AvroType = "array" AvroTypeMap AvroType = "map" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvroFields ¶
type AvroFields struct {
Name string `json:"name"`
Type interface{} `json:"type"`
}
type AvroSchema ¶
type AvroSchema struct {
Type string `json:"type"`
Namespace string `json:"namespace"`
Name string `json:"name"`
Fields []AvroFields `json:"fields"`
}
type Config ¶
type Config struct {
Host string `mapstructure:"host" validate:"required"`
NamespaceID string `mapstructure:"namespace_id" validate:"required"`
Format string `mapstructure:"format" validate:"oneof=json avro" default:"json"`
}
Config holds the set of configuration options for the sink
type JsonProperty ¶
type JsonSchema ¶
Click to show internal directories.
Click to hide internal directories.