giraffe

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 5 Imported by: 0

README

giraffe-proto

Build Status

Protofiles for Giraffe, Namely's gRPC to GraphQL adapter

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional namely.giraffe.Stitch stitch = 165218;
	E_Stitch = &file_namely_giraffe_stitch_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_namely_giraffe_stitch_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Stitch

type Stitch struct {

	// Service is the fully-qualified package and
	// service name of the service, e.g. namely.profiles.ProfilesService
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// Method is the method to call within the service, e.g GetProfile
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// Request Parameter is the name of the field within the request type
	// to set. The value of this field will be the value of the annotated
	// stitch option.
	RequestParameter string `protobuf:"bytes,3,opt,name=request_parameter,json=requestParameter,proto3" json:"request_parameter,omitempty"`
	// Field name is the name of the field which will be added to the GraphQL
	// schema
	FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// Hide field will hide the source field from the schema so only the stitched
	// object is present
	HideField bool `protobuf:"varint,5,opt,name=hide_field,json=hideField,proto3" json:"hide_field,omitempty"`
	// Request Quantifier is an optional quantifier for the method payload (e.g.
	// byEmployment). The value of this field will act as a key for the payload {
	// [requestQuantifier]: { [requestParamter]: <value> }}
	RequestQuantifier string `protobuf:"bytes,6,opt,name=request_quantifier,json=requestQuantifier,proto3" json:"request_quantifier,omitempty"`
	// contains filtered or unexported fields
}

func (*Stitch) Descriptor deprecated

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

Deprecated: Use Stitch.ProtoReflect.Descriptor instead.

func (*Stitch) GetFieldName

func (x *Stitch) GetFieldName() string

func (*Stitch) GetHideField

func (x *Stitch) GetHideField() bool

func (*Stitch) GetMethod

func (x *Stitch) GetMethod() string

func (*Stitch) GetRequestParameter

func (x *Stitch) GetRequestParameter() string

func (*Stitch) GetRequestQuantifier

func (x *Stitch) GetRequestQuantifier() string

func (*Stitch) GetService

func (x *Stitch) GetService() string

func (*Stitch) ProtoMessage

func (*Stitch) ProtoMessage()

func (*Stitch) ProtoReflect

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

func (*Stitch) Reset

func (x *Stitch) Reset()

func (*Stitch) String

func (x *Stitch) String() string

Jump to

Keyboard shortcuts

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