Documentation ¶
Index ¶
- Variables
- type Dir
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetDirs() []*Dir
- func (x *Field) GetIgnore() bool
- func (x *Field) GetName() string
- func (x *Field) GetParameter() []*Parameter
- func (x *Field) GetRequired() bool
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetName() string
- func (x *Parameter) GetType() ParameterType
- func (x *Parameter) GetValue() string
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type ParameterType
- func (ParameterType) Descriptor() protoreflect.EnumDescriptor
- func (x ParameterType) Enum() *ParameterType
- func (ParameterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ParameterType) Number() protoreflect.EnumNumber
- func (x ParameterType) String() string
- func (ParameterType) Type() protoreflect.EnumType
- func (x *ParameterType) UnmarshalJSON(b []byte) errordeprecated
- type Rpc
- func (*Rpc) Descriptor() ([]byte, []int)deprecated
- func (x *Rpc) GetDirs() []*Dir
- func (x *Rpc) GetIgnore() bool
- func (x *Rpc) GetName() string
- func (x *Rpc) GetType() Type
- func (*Rpc) ProtoMessage()
- func (x *Rpc) ProtoReflect() protoreflect.Message
- func (x *Rpc) Reset()
- func (x *Rpc) String() string
- type Svc
- func (*Svc) Descriptor() ([]byte, []int)deprecated
- func (x *Svc) GetDirs() []*Dir
- func (x *Svc) GetIgnore() bool
- func (x *Svc) GetName() string
- func (x *Svc) GetType() Type
- func (*Svc) ProtoMessage()
- func (x *Svc) ProtoReflect() protoreflect.Message
- func (x *Svc) Reset()
- func (x *Svc) String() string
- type Type
- func (Type) Descriptor() protoreflect.EnumDescriptor
- func (x Type) Enum() *Type
- func (Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Type) Number() protoreflect.EnumNumber
- func (x Type) String() string
- func (Type) Type() protoreflect.EnumType
- func (x *Type) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ParameterType_name = map[int32]string{ 0: "Variable", 1: "String", 2: "Int", 3: "Float", 4: "Block", 5: "Boolean", 6: "Null", 7: "Enum", 8: "List", 9: "Object", } ParameterType_value = map[string]int32{ "Variable": 0, "String": 1, "Int": 2, "Float": 3, "Block": 4, "Boolean": 5, "Null": 6, "Enum": 7, "List": 8, "Object": 9, } )
Enum value maps for ParameterType.
View Source
var ( Type_name = map[int32]string{ 0: "DEFAULT", 1: "MUTATION", 2: "QUERY", } Type_value = map[string]int32{ "DEFAULT": 0, "MUTATION": 1, "QUERY": 2, } )
Enum value maps for Type.
View Source
var (
// optional danielvladco.protobuf.graphql.Field field = 65030;
E_Field = &file_pb_graphql_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var (
// optional danielvladco.protobuf.graphql.Rpc rpc = 65030;
E_Rpc = &file_pb_graphql_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var (
// optional danielvladco.protobuf.graphql.Svc svc = 65030;
E_Svc = &file_pb_graphql_proto_extTypes[1]
)
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_pb_graphql_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Parameter []*Parameter `protobuf:"bytes,2,rep,name=parameter" json:"parameter,omitempty"` // contains filtered or unexported fields }
func (*Dir) Descriptor
deprecated
func (*Dir) GetParameter ¶
func (*Dir) ProtoMessage ¶
func (*Dir) ProtoMessage()
func (*Dir) ProtoReflect ¶
func (x *Dir) ProtoReflect() protoreflect.Message
type Field ¶
type Field struct { Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` Parameter []*Parameter `protobuf:"bytes,2,rep,name=parameter" json:"parameter,omitempty"` Dirs []*Dir `protobuf:"bytes,3,rep,name=dirs" json:"dirs,omitempty"` Ignore *bool `protobuf:"varint,4,opt,name=ignore" json:"ignore,omitempty"` Name *string `protobuf:"bytes,5,opt,name=name" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetParameter ¶
func (*Field) GetRequired ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type Parameter ¶
type Parameter struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Type *ParameterType `protobuf:"varint,2,req,name=type,enum=danielvladco.protobuf.graphql.ParameterType" json:"type,omitempty"` Value *string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Parameter) Descriptor
deprecated
func (*Parameter) GetType ¶
func (x *Parameter) GetType() ParameterType
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type ParameterType ¶
type ParameterType int32
similiar to Graphqltypes see github.com/vektah/gqlparser/ast/value.go
const ( ParameterType_Variable ParameterType = 0 ParameterType_String ParameterType = 1 ParameterType_Int ParameterType = 2 ParameterType_Float ParameterType = 3 ParameterType_Block ParameterType = 4 ParameterType_Boolean ParameterType = 5 ParameterType_Null ParameterType = 6 ParameterType_Enum ParameterType = 7 ParameterType_List ParameterType = 8 ParameterType_Object ParameterType = 9 )
func (ParameterType) Descriptor ¶
func (ParameterType) Descriptor() protoreflect.EnumDescriptor
func (ParameterType) Enum ¶
func (x ParameterType) Enum() *ParameterType
func (ParameterType) EnumDescriptor
deprecated
func (ParameterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ParameterType.Descriptor instead.
func (ParameterType) Number ¶
func (x ParameterType) Number() protoreflect.EnumNumber
func (ParameterType) String ¶
func (x ParameterType) String() string
func (ParameterType) Type ¶
func (ParameterType) Type() protoreflect.EnumType
func (*ParameterType) UnmarshalJSON
deprecated
func (x *ParameterType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Rpc ¶
type Rpc struct { Type *Type `protobuf:"varint,1,opt,name=type,enum=danielvladco.protobuf.graphql.Type" json:"type,omitempty"` Ignore *bool `protobuf:"varint,2,opt,name=ignore" json:"ignore,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Dirs []*Dir `protobuf:"bytes,4,rep,name=dirs" json:"dirs,omitempty"` // contains filtered or unexported fields }
func (*Rpc) Descriptor
deprecated
func (*Rpc) ProtoMessage ¶
func (*Rpc) ProtoMessage()
func (*Rpc) ProtoReflect ¶
func (x *Rpc) ProtoReflect() protoreflect.Message
type Svc ¶
type Svc struct { Type *Type `protobuf:"varint,1,opt,name=type,enum=danielvladco.protobuf.graphql.Type" json:"type,omitempty"` Ignore *bool `protobuf:"varint,2,opt,name=ignore" json:"ignore,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Dirs []*Dir `protobuf:"bytes,4,rep,name=dirs" json:"dirs,omitempty"` // contains filtered or unexported fields }
func (*Svc) Descriptor
deprecated
func (*Svc) ProtoMessage ¶
func (*Svc) ProtoMessage()
func (*Svc) ProtoReflect ¶
func (x *Svc) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
func (*Type) UnmarshalJSON
deprecated
Click to show internal directories.
Click to hide internal directories.