Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryCoder ¶
type BinaryCoder interface { BinaryDecoder BinaryEncoder }
BinaryCoder interface describes types that expose both the Decode and the Encode methods.
func NewCodec ¶
func NewCodec(schemaSpecification string) (BinaryCoder, error)
NewCodec returns a Codec that can encode and decode the specified Avro schema.
type BinaryDecoder ¶
BinaryDecoder interface describes types that expose the Decode method.
type BinaryEncoder ¶
BinaryEncoder interface describes types that expose the Encode method.
type ErrInvalidName ¶
type ErrInvalidName struct {
Message string
}
ErrInvalidName is the error returned when one or more parts of an Avro name is invalid.
func (ErrInvalidName) Error ¶
func (e ErrInvalidName) Error() string
type Name ¶
type Name struct { FullName string // the instance's Avro name Namespace string // for use when building new name from existing one }
Name describes an Avro name in terms of its full name and namespace.
func NewName ¶
NewName returns a new Name instance after first ensuring the arguments do not violate any of the Avro naming rules.
Click to show internal directories.
Click to hide internal directories.