Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Primitives = []string{"string", "bool", "int32", "int64", "float32", "float64", "byte", "uuid", "timestamp"}
Functions ¶
func IsPrimitive ¶
Types ¶
type Field ¶
type Field struct { Name string `json:"name"` Type Type `json:"type"` Optional bool `json:"optional"` }
func (*Field) UnmarshalJSON ¶
type File ¶
type File struct { Name string `json:"name"` Options []*Option[any] `json:"options,omitempty"` Messages []*Message `json:"messages,omitempty"` Unions []*Union `json:"unions,omitempty"` Enums []*Enum `json:"enums,omitempty"` Services []*Service `json:"services,omitempty"` Aliases []*Alias `json:"aliases,omitempty"` }
type ListType ¶
type ListType struct {
ElementType *ScalarType `json:"element"`
}
func (ListType) MarshalJSON ¶
type MapType ¶
type MapType struct { KeyType *ScalarType `json:"key"` ValueType *ScalarType `json:"value"` }
func (MapType) MarshalJSON ¶
type Member ¶
type Member struct { Name string `json:"name"` Type ScalarType `json:"type"` }
type ScalarType ¶
type ScalarType struct {
Name string `json:"name"`
}
func (ScalarType) MarshalJSON ¶
func (v ScalarType) MarshalJSON() ([]byte, error)
type Type ¶
type Type interface {
// contains filtered or unexported methods
}
func UnmarshalTypeJSON ¶
Click to show internal directories.
Click to hide internal directories.