Documentation ¶
Index ¶
- Variables
- func CompileGo(packageName string, schema *Schema, fields map[string][]ExtraField) string
- type Buffer
- func (b *Buffer) ReadByte() (byte, error)
- func (b *Buffer) ReadByteArray() ([]byte, error)
- func (b *Buffer) ReadString() (string, error)
- func (b *Buffer) ReadVarFloat() (float64, error)
- func (b *Buffer) ReadVarInt() (int, error)
- func (b *Buffer) ReadVarInt64() (int64, error)
- func (b *Buffer) ReadVarUint() (uint, error)
- func (b *Buffer) ReadVarUint64() (uint64, error)
- type Definition
- type DefinitionKind
- type ExtraField
- type Field
- type Schema
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIndexOutOfBounds = errors.New("index out of bounds")
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) ReadByteArray ¶
func (*Buffer) ReadString ¶
func (*Buffer) ReadVarFloat ¶
func (*Buffer) ReadVarInt ¶
func (*Buffer) ReadVarInt64 ¶
func (*Buffer) ReadVarUint ¶
func (*Buffer) ReadVarUint64 ¶
type Definition ¶
type Definition struct { Name string Line int Column int Kind DefinitionKind Fields []Field }
type DefinitionKind ¶
type DefinitionKind string
const ( ENUM DefinitionKind = "ENUM" STRUCT DefinitionKind = "STRUCT" MESSAGE DefinitionKind = "MESSAGE" )
type ExtraField ¶
type Schema ¶
type Schema struct { Package *string Definitions []Definition }
func DecodeBinarySchema ¶
Click to show internal directories.
Click to hide internal directories.