Documentation
¶
Index ¶
- Variables
- type Headers
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetBody() []byte
- func (x *InvokeRequest) GetHeaders() []*Headers
- func (x *InvokeRequest) GetTarget() string
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeResponse
- func (*InvokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeResponse) GetBody() []byte
- func (x *InvokeResponse) GetHeaders() []*Headers
- func (x *InvokeResponse) GetTrailers() []*Headers
- func (*InvokeResponse) ProtoMessage()
- func (x *InvokeResponse) ProtoReflect() protoreflect.Message
- func (x *InvokeResponse) Reset()
- func (x *InvokeResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_buf_alpha_studio_v1alpha1_invoke_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Headers ¶
type Headers struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
Headers encode HTTP headers.
func (*Headers) Descriptor
deprecated
func (*Headers) ProtoMessage ¶
func (*Headers) ProtoMessage()
func (*Headers) ProtoReflect ¶
func (x *Headers) ProtoReflect() protoreflect.Message
type InvokeRequest ¶
type InvokeRequest struct {
// Target server the agent should forward this request to, e.g.
// "https://api.acme.corp/pkg.Service/Method". Using the "http" scheme will
// cause the request to be forwarded as h2c, whereas "https" forwards the
// request with regular h2.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Headers to send with the request. If body is set, a Content-Type header
// must be specified.
Headers []*Headers `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
// The message to be sent in the request (without any protocol specific framing).
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
InvokeRequest encodes an enveloped RPC request. See the package documentation for more information.
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetBody ¶
func (x *InvokeRequest) GetBody() []byte
func (*InvokeRequest) GetHeaders ¶
func (x *InvokeRequest) GetHeaders() []*Headers
func (*InvokeRequest) GetTarget ¶
func (x *InvokeRequest) GetTarget() string
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
type InvokeResponse ¶
type InvokeResponse struct {
// Headers received in the response.
Headers []*Headers `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
// The encoded message received in the response (without protocol specific framing).
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// Trailers received in the response.
Trailers []*Headers `protobuf:"bytes,3,rep,name=trailers,proto3" json:"trailers,omitempty"`
// contains filtered or unexported fields
}
InvokeResponse encodes an enveloped RPC response. See the package documentation for more information.
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetBody ¶
func (x *InvokeResponse) GetBody() []byte
func (*InvokeResponse) GetHeaders ¶
func (x *InvokeResponse) GetHeaders() []*Headers
func (*InvokeResponse) GetTrailers ¶
func (x *InvokeResponse) GetTrailers() []*Headers
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
Click to show internal directories.
Click to hide internal directories.