graphql

package
v1.18.0-beta31 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_graphql_graphql_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ServiceSpec

type ServiceSpec struct {

	// Endpoint provides the endpoint information, and how to call the GraphQL Server.
	// This endpoint must be called via HTTP POST sending form data as mentioned in [the GraphQL Docs](https://graphql.org/learn/serving-over-http/#post-request).
	Endpoint *ServiceSpec_Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

Only supported in enterprise with the GraphQL addon. This is the service spec describing GraphQL upstreams. This will usually be filled automatically via function discovery (if the upstream supports introspection). If your upstream service is a GraphQL service, use this service spec (an empty spec is fine).

func (*ServiceSpec) Clone

func (m *ServiceSpec) Clone() proto.Message

Clone function

func (*ServiceSpec) Descriptor deprecated

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

Deprecated: Use ServiceSpec.ProtoReflect.Descriptor instead.

func (*ServiceSpec) Equal

func (m *ServiceSpec) Equal(that interface{}) bool

Equal function

func (*ServiceSpec) GetEndpoint

func (x *ServiceSpec) GetEndpoint() *ServiceSpec_Endpoint

func (*ServiceSpec) Hash deprecated

func (m *ServiceSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.

func (*ServiceSpec) HashUnique added in v1.18.0

func (m *ServiceSpec) HashUnique(hasher hash.Hash64) (uint64, error)

HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.

func (*ServiceSpec) ProtoMessage

func (*ServiceSpec) ProtoMessage()

func (*ServiceSpec) ProtoReflect

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

func (*ServiceSpec) Reset

func (x *ServiceSpec) Reset()

func (*ServiceSpec) String

func (x *ServiceSpec) String() string

type ServiceSpec_Endpoint

type ServiceSpec_Endpoint struct {

	// The url for the graphql endpoint. Automation via Discovery only supports `http://<host>/graphql` ie: http://myurl.com/graphql
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Describes a GraphQL Endpoint information

func (*ServiceSpec_Endpoint) Clone

func (m *ServiceSpec_Endpoint) Clone() proto.Message

Clone function

func (*ServiceSpec_Endpoint) Descriptor deprecated

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

Deprecated: Use ServiceSpec_Endpoint.ProtoReflect.Descriptor instead.

func (*ServiceSpec_Endpoint) Equal

func (m *ServiceSpec_Endpoint) Equal(that interface{}) bool

Equal function

func (*ServiceSpec_Endpoint) GetUrl

func (x *ServiceSpec_Endpoint) GetUrl() string

func (*ServiceSpec_Endpoint) Hash deprecated

func (m *ServiceSpec_Endpoint) Hash(hasher hash.Hash64) (uint64, error)

Hash function

Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.

func (*ServiceSpec_Endpoint) HashUnique added in v1.18.0

func (m *ServiceSpec_Endpoint) HashUnique(hasher hash.Hash64) (uint64, error)

HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.

func (*ServiceSpec_Endpoint) ProtoMessage

func (*ServiceSpec_Endpoint) ProtoMessage()

func (*ServiceSpec_Endpoint) ProtoReflect

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

func (*ServiceSpec_Endpoint) Reset

func (x *ServiceSpec_Endpoint) Reset()

func (*ServiceSpec_Endpoint) String

func (x *ServiceSpec_Endpoint) String() string

Jump to

Keyboard shortcuts

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