Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FieldTypeBoolean = FieldType{ // contains filtered or unexported fields } FieldTypeDecimal = FieldType{ // contains filtered or unexported fields } FieldTypeNumber = FieldType{ // contains filtered or unexported fields } FieldTypeString = FieldType{ // contains filtered or unexported fields } )
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Name string Actions EndpointActions Filename string Objects []*Object ResourcePath string }
type EndpointActions ¶
type Field ¶
type Field struct { Name string Description string Type FieldType JSONName string Validation *regexp.Regexp }
func (Field) DefaultDescription ¶
type FieldType ¶
type FieldType struct {
// contains filtered or unexported fields
}
FieldType represents the derived type from the API specification for a field on an endpoint object.
func FieldTypeList ¶
func FieldTypeObject ¶
func (*FieldType) ElementType ¶
ElementType returns the expected FieldType for all elements of a list. If this type is not a list the nil is returned.
func (*FieldType) IsListType ¶
IsListType indicates whether the type is a Golang list. Use ElementType to determine the type of the elements expected for the list.
func (*FieldType) IsObjectType ¶
IsObjectType indicates whether the type is a Golang struct.
func (*FieldType) IsPrimitiveType ¶
IsPrimitiveType indicates whether the type is a Golang primitive.
func (*FieldType) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.