Versions in this module Expand all Collapse all v0 v0.22.1 Aug 24, 2023 Changes in this version + func IsGooglePackage(p PackageGetter) bool + func PrefixEnum(name string) string + func PrefixInput(name string) string + func PrefixInterface(name string) string + func PrefixType(name string) string + type CommentType int + const GoComment + const GraphqlComment + type Comments map[string]string + type DependType int + const DependTypeEnum + const DependTypeInput + const DependTypeInterface + const DependTypeMessage + type Dependencies struct + func NewDependencies() *Dependencies + func (d *Dependencies) Depend(t DependType, pkg string) + func (d *Dependencies) GetDependendencies() map[string][]string + func (d *Dependencies) IsDepended(t DependType, pkg string) bool + type Enum struct + func NewEnum(d *descriptor.EnumDescriptorProto, f *File, prefix []string, paths ...int) *Enum + func (e *Enum) Comment() string + func (e *Enum) FullPath() string + func (e *Enum) Name() string + func (e *Enum) PathName() string + func (e *Enum) SingleName() string + func (e *Enum) Values() []*EnumValue + type EnumValue struct + func NewEnumValue(d *descriptor.EnumValueDescriptorProto, f *File, paths ...int) *EnumValue + func (e *EnumValue) Comment() string + func (e *EnumValue) Name() string + func (e *EnumValue) Number() int32 + type Field struct + DependType interface{} + IsCyclic bool + Option *graphql.GraphqlField + func NewField(d *descriptor.FieldDescriptorProto, f *File, isCamel bool, paths ...int) *Field + func (f *Field) Comment() string + func (f *Field) DefaultValue() string + func (f *Field) FieldName() string + func (f *Field) FieldType(rootPackage string) string + func (f *Field) FieldTypeInput(rootPackage string) string + func (f *Field) GraphqlGoType(rootPackage string, isInput bool) string + func (f *Field) GraphqlType() string + func (f *Field) IsOmit() bool + func (f *Field) IsRepeated() bool + func (f *Field) IsRequired() bool + func (f *Field) IsResolve() bool + func (f *Field) Label() descriptor.FieldDescriptorProto_Label + func (f *Field) Name() string + func (f *Field) ResolveSubField(services []*Service) *Query + func (f *Field) SchemaInputType() string + func (f *Field) SchemaType() string + func (f *Field) Type() descriptor.FieldDescriptorProto_Type + func (f *Field) TypeName() string + type File struct + CompilerVersion *plugin.Version + func NewFile(d *descriptor.FileDescriptorProto, cv *plugin.Version, isCamel bool) *File + func (f *File) Enums() []*Enum + func (f *File) Filename() string + func (f *File) GoPackage() string + func (f *File) Messages() []*Message + func (f *File) Package() string + func (f *File) Services() []*Service + type Message struct + PluckFields []*Field + func NewMessage(d *descriptor.DescriptorProto, f *File, prefix []string, isCamel bool, ...) *Message + func (m *Message) Comment() string + func (m *Message) Fields() []*Field + func (m *Message) FullPath() string + func (m *Message) Interfaces() (ifs []*Message) + func (m *Message) Name() string + func (m *Message) SingleName() string + func (m *Message) StructName(ptr bool) string + func (m *Message) TypeFields() []*Field + func (m *Message) TypeName() string + type Method struct + Schema *graphql.GraphqlSchema + Service *Service + func NewMethod(m *descriptor.MethodDescriptorProto, s *Service, paths ...int) *Method + func (m *Method) Comment() string + func (m *Method) Input() string + func (m *Method) Name() string + func (m *Method) Output() string + func (m *Method) ServiceName() string + type Mutation struct + Input *Message + Output *Message + func NewMutation(m *Method, input, output *Message, isCamel bool) *Mutation + func (m *Mutation) Args() []*Field + func (m *Mutation) InputName() string + func (m *Mutation) InputType() string + func (m *Mutation) IsCamel() bool + func (m *Mutation) IsPluckRequest() bool + func (m *Mutation) IsPluckResponse() bool + func (m *Mutation) MutationName() string + func (m *Mutation) MutationType() string + func (m *Mutation) OutputName() string + func (m *Mutation) Package() string + func (m *Mutation) PluckRequest() []*Field + func (m *Mutation) PluckResponse() []*Field + func (m *Mutation) PluckResponseFieldName() string + func (m *Mutation) Request() *graphql.GraphqlRequest + func (m *Mutation) Response() *graphql.GraphqlResponse + type Package struct + CamelName string + FileName string + GeneratedFilenamePrefix string + Name string + Path string + func NewGoPackageFromString(pkg string) *Package + func NewGooglePackage(m PackageGetter) *Package + func NewPackage(g PackageGetter) *Package + type PackageGetter interface + Filename func() string + GoPackage func() string + Package func() string + type Params struct + Excludes []*regexp.Regexp + FieldCamelCase bool + Paths string + QueryOut string + Verbose bool + func NewParams(p string) (*Params, error) + func (p *Params) IsExclude(pkg string) bool + func (p *Params) IsSourceRelative() bool + type Query struct + Input *Message + Output *Message + func NewQuery(m *Method, input, output *Message, isCamel bool) *Query + func (q *Query) Args() []*Field + func (q *Query) InputType() string + func (q *Query) IsCamel() bool + func (q *Query) IsPluckRequest() bool + func (q *Query) IsPluckResponse() bool + func (q *Query) IsResolver() bool + func (q *Query) OutputName() string + func (q *Query) Package() string + func (q *Query) PluckRequest() []*Field + func (q *Query) PluckResponse() []*Field + func (q *Query) PluckResponseFieldName() string + func (q *Query) QueryName() string + func (q *Query) QueryType() string + func (q *Query) Request() *graphql.GraphqlRequest + func (q *Query) Response() *graphql.GraphqlResponse + func (q *Query) SchemaArgs() string + type Service struct + Mutations []*Mutation + Option *graphql.GraphqlService + Queries []*Query + func NewService(d *descriptor.ServiceDescriptorProto, f *File, paths ...int) *Service + func (s *Service) Comment() string + func (s *Service) Host() string + func (s *Service) Insecure() bool + func (s *Service) Methods() []*Method + func (s *Service) Name() string