Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex struct {
Simple
Caption string `json:"caption"`
Credit string `json:"credit"`
Crops []struct {
Height float64 `json:"height"`
Name string `json:"name"`
Path string `json:"path" description:"full path to the cropped image file"`
RelativePath string `json:"relativePath" description:"a long"`
Width float64 `json:"width"`
} `json:"crops"`
Cutline string `json:"cutline,omitempty"`
DatePhotoTaken string `json:"datePhotoTaken"`
Orientation string `json:"orientation"`
OriginalSize struct {
Height float64 `json:"height"`
Width float64 `json:"width"`
} `json:"originalSize"`
Type string `json:"type" description:"a type"`
URL struct {
Absolute string `json:"absolute"`
Publish string `json:"publish"`
} `json:"URL"`
}
func (*Complex) WriteAvroCF ¶
WriteAvroCF writes an Avro Containter File to the given io.Writer using snappy compression for the data. The time is used as the AvroWriteTime, if the time is the Zero value then the current time is used. If z is nil then the data will be a delete as indicated by the AvroDeleted field. NOTE: If the type has a field in an embedded struct with the same name as a field not in the embedded struct the value will be pulled from the field not in the embedded struct.
type Repeats ¶
type Repeats struct {
Height int64 `json:"height,omitempty"`
SomeDateObj struct {
Type string `json:"type"`
Visible bool `json:"visible,omitempty"`
} `json:"someDateObj,omitempty"`
Type string `json:"type"`
Visible bool `json:"visible,omitempty"`
Width float64 `json:"width,omitempty"`
}
func (*Repeats) WriteAvroCF ¶
WriteAvroCF writes an Avro Containter File to the given io.Writer using snappy compression for the data. The time is used as the AvroWriteTime, if the time is the Zero value then the current time is used. If z is nil then the data will be a delete as indicated by the AvroDeleted field. NOTE: If the type has a field in an embedded struct with the same name as a field not in the embedded struct the value will be pulled from the field not in the embedded struct.
type Simple ¶
type Simple struct {
Height int64 `json:"height,omitempty"`
SomeDateObj struct {
Dates []time.Time `json:"dates,omitempty"`
} `json:"someDateObj,omitempty"`
Type string `json:"type"`
Visible bool `json:"visible,omitempty"`
Width float64 `json:"width,omitempty"`
}
func (*Simple) WriteAvroCF ¶
WriteAvroCF writes an Avro Containter File to the given io.Writer using snappy compression for the data. The time is used as the AvroWriteTime, if the time is the Zero value then the current time is used. If z is nil then the data will be a delete as indicated by the AvroDeleted field. NOTE: If the type has a field in an embedded struct with the same name as a field not in the embedded struct the value will be pulled from the field not in the embedded struct.