atype

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package atype defines constants for Avro schema type names, logical type names, and field sort orders. These are the string values used in [avro.SchemaNode], [avro.SchemaField], and [avro.CustomType].

All constants are untyped strings and can be used directly wherever a string is expected.

Index

Constants

View Source
const (
	Null    = "null"
	Boolean = "boolean"
	Int     = "int"
	Long    = "long"
	Float   = "float"
	Double  = "double"
	String  = "string"
	Bytes   = "bytes"
)

Avro primitive types.

View Source
const (
	Record = "record"
	Error  = "error"
	Enum   = "enum"
	Array  = "array"
	Map    = "map"
	Union  = "union"
	Fixed  = "fixed"
)

Avro complex types.

View Source
const (
	Date                 = "date"
	TimeMillis           = "time-millis"
	TimeMicros           = "time-micros"
	TimestampMillis      = "timestamp-millis"
	TimestampMicros      = "timestamp-micros"
	TimestampNanos       = "timestamp-nanos"
	LocalTimestampMillis = "local-timestamp-millis"
	LocalTimestampMicros = "local-timestamp-micros"
	LocalTimestampNanos  = "local-timestamp-nanos"
	Decimal              = "decimal"
	BigDecimal           = "big-decimal"
	UUID                 = "uuid"
	Duration             = "duration"
)

Avro logical types.

View Source
const (
	Ascending  = "ascending"
	Descending = "descending"
	Ignore     = "ignore"
)

Avro field sort orders.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL