gql

package module
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Field = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*Field)(nil),
	Field:         65030,
	Name:          "gql.field",
	Tag:           "bytes,65030,opt,name=field",
	Filename:      "gql.proto",
}
View Source
var E_RpcType = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MethodOptions)(nil),
	ExtensionType: (*Type)(nil),
	Field:         65030,
	Name:          "gql.rpc_type",
	Tag:           "varint,65030,opt,name=rpc_type,enum=gql.Type",
	Filename:      "gql.proto",
}
View Source
var E_SvcType = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.ServiceOptions)(nil),
	ExtensionType: (*Type)(nil),
	Field:         65030,
	Name:          "gql.svc_type",
	Tag:           "varint,65030,opt,name=svc_type,enum=gql.Type",
	Filename:      "gql.proto",
}
View Source
var Type_name = map[int32]string{
	0: "DEFAULT",
	1: "MUTATION",
	2: "QUERY",
}
View Source
var Type_value = map[string]int32{
	"DEFAULT":  0,
	"MUTATION": 1,
	"QUERY":    2,
}

Functions

func UnmarshalAny

func UnmarshalAny(v interface{}) (any.Any, error)

func UnmarshalBytes

func UnmarshalBytes(v interface{}) ([]byte, error)

func UnmarshalFloat32

func UnmarshalFloat32(v interface{}) (float32, error)

func UnmarshalInt32

func UnmarshalInt32(v interface{}) (int32, error)

func UnmarshalInt64

func UnmarshalInt64(v interface{}) (int64, error)

func UnmarshalUint32

func UnmarshalUint32(v interface{}) (uint32, error)

func UnmarshalUint64

func UnmarshalUint64(v interface{}) (uint64, error)

Types

type DummyResolver

type DummyResolver struct{}

func (*DummyResolver) Dummy

func (r *DummyResolver) Dummy(ctx context.Context) (*bool, error)

type Field

type Field struct {
	Required             *bool    `protobuf:"varint,1,opt,name=required" json:"required,omitempty"`
	Params               *string  `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"`
	Dirs                 *string  `protobuf:"bytes,3,opt,name=dirs" json:"dirs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Field) Descriptor

func (*Field) Descriptor() ([]byte, []int)

func (*Field) GetDirs

func (m *Field) GetDirs() string

func (*Field) GetParams

func (m *Field) GetParams() string

func (*Field) GetRequired

func (m *Field) GetRequired() bool

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) String

func (m *Field) String() string

func (*Field) XXX_DiscardUnknown

func (m *Field) XXX_DiscardUnknown()

func (*Field) XXX_Marshal

func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Field) XXX_Merge

func (m *Field) XXX_Merge(src proto.Message)

func (*Field) XXX_Size

func (m *Field) XXX_Size() int

func (*Field) XXX_Unmarshal

func (m *Field) XXX_Unmarshal(b []byte) error

type Marshaler

type Marshaler interface {
	MarshalGQL(w io.Writer)
}

func MarshalAny

func MarshalAny(any any.Any) Marshaler

func MarshalBytes

func MarshalBytes(b []byte) Marshaler

func MarshalFloat32

func MarshalFloat32(any float32) Marshaler

func MarshalInt32

func MarshalInt32(any int32) Marshaler

func MarshalInt64

func MarshalInt64(any int64) Marshaler

func MarshalUint32

func MarshalUint32(any uint32) Marshaler

func MarshalUint64

func MarshalUint64(any uint64) Marshaler

type Type

type Type int32
const (
	Type_DEFAULT  Type = 0
	Type_MUTATION Type = 1
	Type_QUERY    Type = 2
)

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

func (*Type) UnmarshalJSON

func (x *Type) UnmarshalJSON(data []byte) error

type WriterFunc

type WriterFunc func(writer io.Writer)

func (WriterFunc) MarshalGQL

func (f WriterFunc) MarshalGQL(w io.Writer)

Jump to

Keyboard shortcuts

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