graphql

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 0

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) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetDirs

func (x *Field) GetDirs() string

func (*Field) GetParams

func (x *Field) GetParams() string

func (*Field) GetRequired

func (x *Field) GetRequired() bool

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Operation

type Operation int32

oneof和enum的区别就是一个可以多种类型一个只能是一种类型

const (
	Operation_Query        Operation = 0
	Operation_Mutation     Operation = 1
	Operation_Subscription Operation = 2
)

func (Operation) Descriptor

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String

func (x Operation) String() string

func (Operation) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL