Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadValue = errors.New("bad zng value in kavro translator")
These errors shouldn't happen because the input should be type checked.
Functions ¶
Types ¶
type MicroTimeSchema ¶
type MicroTimeSchema struct{}
MicroTimeSchema implements avro.Schema and represents Avro long type.
func (*MicroTimeSchema) GetName ¶
func (*MicroTimeSchema) GetName() string
GetName returns a type name for this MicroTimeSchema.
func (*MicroTimeSchema) MarshalJSON ¶
func (*MicroTimeSchema) MarshalJSON() ([]byte, error)
MarshalJSON serializes the given schema as JSON. Never returns an error.
func (*MicroTimeSchema) Prop ¶
func (*MicroTimeSchema) Prop(key string) (interface{}, bool)
Prop doesn't return anything valuable for LongSchema.
func (*MicroTimeSchema) String ¶
func (*MicroTimeSchema) String() string
Returns a JSON representation of LongSchema.
func (*MicroTimeSchema) Type ¶
func (*MicroTimeSchema) Type() int
Type returns a type constant for this MicroTimeSchema.
Click to show internal directories.
Click to hide internal directories.