Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Operation_name = map[int32]string{ 0: "Query", 1: "Mutation", 2: "Subscription", } Operation_value = map[string]int32{ "Query": 0, "Mutation": 1, "Subscription": 2, } )
Enum value maps for Operation.
View Source
var (
// optional graphql.Field field = 1001;
E_Field = &file_pandora_protobuf_utils_graphql_graphql_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var ( // 操作名 // // optional graphql.Operation graphql_operation = 1001; E_GraphqlOperation = &file_pandora_protobuf_utils_graphql_graphql_proto_extTypes[0] )
Extension fields to descriptorpb.MethodOptions.
View Source
var (
// optional graphql.Operation operation = 1001;
E_Operation = &file_pandora_protobuf_utils_graphql_graphql_proto_extTypes[1]
)
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_pandora_protobuf_utils_graphql_graphql_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Required bool `protobuf:"varint,1,opt,name=required,proto3" json:"required,omitempty"` Params string `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` Dirs string `protobuf:"bytes,3,opt,name=dirs,proto3" json:"dirs,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetRequired ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type Operation ¶
type Operation int32
oneof和enum的区别就是一个可以多种类型一个只能是一种类型
func (Operation) Descriptor ¶
func (Operation) Descriptor() protoreflect.EnumDescriptor
func (Operation) EnumDescriptor
deprecated
func (Operation) Number ¶
func (x Operation) Number() protoreflect.EnumNumber
func (Operation) Type ¶
func (Operation) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.