Versions in this module Expand all Collapse all v0 v0.8.5 Mar 7, 2022 Changes in this version + const DefaultExtension + const Mutation + const Query + const ScalarBoolean + const ScalarFloat + const ScalarID + const ScalarInt + const ScalarString + const Subscription + func CamelCase(s string) string + func CamelCaseSlice(elem []string) string + func CreateDescriptorsFromProto(req *pluginpb.CodeGeneratorRequest) (descs []*desc.FileDescriptor, err error) + func GetRequestType(rpcOpts *gqlpb.Rpc, svcOpts *gqlpb.Svc) gqlpb.Type + func GoCamelCase(s string) string + func GraphqlFieldOptions(opts proto.Message) *gqlpb.Field + func GraphqlMethodOptions(opts proto.Message) *gqlpb.Rpc + func GraphqlOneofOptions(opts proto.Message) *gqlpb.Oneof + func GraphqlServiceOptions(opts proto.Message) *gqlpb.Svc + func IsAny(o *desc.MessageDescriptor) bool + func IsEmpty(o *desc.MessageDescriptor) bool + func SplitCamelCase(src string) (entries []string) + func ToLowerFirst(s string) string + type Callstack interface + Free func() + Has func(entry interface{}) bool + Len func() int + Pop func(entry interface{}) + Push func(entry interface{}) + func NewCallstack() Callstack + type FieldDescriptor struct + func (f *FieldDescriptor) GetType() *ObjectDescriptor + type FieldDescriptorList []*FieldDescriptor + func (fl FieldDescriptorList) AsGraphql() (dl []*ast.FieldDefinition) + type GoRef interface + FindGoField func(field string) *protogen.Field + func NewGoRef(req *pluginpb.CodeGeneratorRequest) (GoRef, error) + type MethodDescriptor struct + func (m *MethodDescriptor) AsGraphql() *ast.FieldDefinition + func (m *MethodDescriptor) GetInput() *ObjectDescriptor + func (m *MethodDescriptor) GetOutput() *ObjectDescriptor + type ObjectDescriptor struct + func (o *ObjectDescriptor) AsGraphql() *ast.Definition + func (o *ObjectDescriptor) GetFields() []*FieldDescriptor + func (o *ObjectDescriptor) IsInput() bool + func (o *ObjectDescriptor) IsMessage() bool + type Registry interface + FindFieldByName func(msg desc.Descriptor, name string) *desc.FieldDescriptor + FindMethodByName func(name string) *desc.MethodDescriptor + FindObjectByFullyQualifiedName func(fqn string) (*desc.MessageDescriptor, *ast.Definition) + FindObjectByName func(name string) *desc.MessageDescriptor + func NewRegistry(files SchemaDescriptorList) Registry + type RootDefinition struct + Parent *SchemaDescriptor + func NewRootDefinition(name rootName, parent *SchemaDescriptor) *RootDefinition + func (r *RootDefinition) Methods() []*MethodDescriptor + func (r *RootDefinition) UniqueName(svc *descriptor.ServiceDescriptorProto, rpc *descriptor.MethodDescriptorProto) (name string) + type SchemaDescriptor struct + FileDescriptors []*desc.FileDescriptor + func NewSchemaDescriptor(genServiceDesc bool, goref GoRef) *SchemaDescriptor + func (s *SchemaDescriptor) AsGraphql() *ast.Schema + func (s *SchemaDescriptor) CreateObjects(d desc.Descriptor, input bool) (obj *ObjectDescriptor, err error) + func (s *SchemaDescriptor) GetMutation() *RootDefinition + func (s *SchemaDescriptor) GetQuery() *RootDefinition + func (s *SchemaDescriptor) GetSubscription() *RootDefinition + func (s *SchemaDescriptor) Objects() []*ObjectDescriptor + type SchemaDescriptorList []*SchemaDescriptor + func NewSchemas(files []*desc.FileDescriptor, mergeSchemas, genServiceDesc bool, goref GoRef) (schemas SchemaDescriptorList, _ error) + func (s SchemaDescriptorList) AsGraphql() (astSchema []*ast.Schema) + func (s SchemaDescriptorList) GetForDescriptor(file *protogen.File) *SchemaDescriptor + type ServiceAndMethod struct