Documentation ¶
Index ¶
- Variables
- type Stitch
- func (*Stitch) Descriptor() ([]byte, []int)deprecated
- func (x *Stitch) GetFieldName() string
- func (x *Stitch) GetHideField() bool
- func (x *Stitch) GetMethod() string
- func (x *Stitch) GetRequestParameter() string
- func (x *Stitch) GetRequestQuantifier() string
- func (x *Stitch) GetService() string
- func (*Stitch) ProtoMessage()
- func (x *Stitch) ProtoReflect() protoreflect.Message
- func (x *Stitch) Reset()
- func (x *Stitch) String() string
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) GetFieldName ¶
func (*Stitch) GetHideField ¶
func (*Stitch) GetRequestParameter ¶
func (*Stitch) GetRequestQuantifier ¶
func (*Stitch) GetService ¶
func (*Stitch) ProtoMessage ¶
func (*Stitch) ProtoMessage()
func (*Stitch) ProtoReflect ¶
func (x *Stitch) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.