Versions in this module Expand all Collapse all v1 v1.41.0 Jun 27, 2022 Changes in this version + type CodeGen struct + func New(doc *ast.Document, config Config) *CodeGen + func (c *CodeGen) Generate(w io.Writer) (int, error) + type Config struct + DirectiveStructSuffix string + PackageName string + type DataSourceConfig struct + BooleanWithDefault bool + FloatWithDefault float32 + InputWithDefaultChildField InputWithDefault + IntWithDefault int64 + Methods Methods + NonNullBoolean bool + NonNullFloat float32 + NonNullInt int64 + NonNullListOfNonNullParameter []Parameter + NonNullListOfNonNullString []string + NonNullListOfNullableHeader []*Header + NonNullListOfNullableString []*string + NonNullString string + NonNullStringWithDefault string + NullableBoolean *bool + NullableFloat *float32 + NullableInt *int64 + NullableListOfNullableHeader *[]*Header + NullableListOfNullableString *[]*string + NullableString *string + NullableStringWithDefault string + StringWithDefaultOverride string + func (d *DataSourceConfig) Unmarshal(doc *ast.Document, ref int) + type HTTP_METHOD int + const HTTP_METHOD_DELETE + const HTTP_METHOD_GET + const HTTP_METHOD_POST + const HTTP_METHOD_UPDATE + const UNDEFINED_HTTP_METHOD + func (h *HTTP_METHOD) Unmarshal(doc *ast.Document, ref int) + type Header struct + Key string + Value string + func (h *Header) Unmarshal(doc *ast.Document, ref int) + type InputWithDefault struct + BooleanWithDefault bool + FloatWithDefault float32 + IntWithDefault int64 + NullableString *string + StringWithDefault string + func (i *InputWithDefault) Unmarshal(doc *ast.Document, ref int) + type Methods struct + List []HTTP_METHOD + func (m *Methods) Unmarshal(doc *ast.Document, ref int) + type PARAMETER_SOURCE int + const PARAMETER_SOURCE_CONTEXT_VARIABLE + const PARAMETER_SOURCE_FIELD_ARGUMENTS + const PARAMETER_SOURCE_OBJECT_VARIABLE_ARGUMENT + const UNDEFINED_PARAMETER_SOURCE + func (p *PARAMETER_SOURCE) Unmarshal(doc *ast.Document, ref int) + type Parameter struct + Name string + SourceKind PARAMETER_SOURCE + SourceName string + VariableName string + func (p *Parameter) Unmarshal(doc *ast.Document, ref int)