Documentation ¶
Index ¶
- Variables
- type Body
- type KeyValue
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)deprecated
- func (x *RequestHeader) GetDestination() string
- func (x *RequestHeader) GetHeaders() []*KeyValue
- func (x *RequestHeader) GetMethod() string
- func (x *RequestHeader) GetProxyNext() []string
- func (x *RequestHeader) GetProxyRecord() []string
- func (x *RequestHeader) GetSource() string
- func (*RequestHeader) ProtoMessage()
- func (x *RequestHeader) ProtoReflect() protoreflect.Message
- func (x *RequestHeader) Reset()
- func (x *RequestHeader) String() string
- type Reset
- type ResponseStatus
- func (*ResponseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseStatus) GetCode() int32
- func (x *ResponseStatus) GetDetails() []*anypb.Any
- func (x *ResponseStatus) GetMessage() string
- func (*ResponseStatus) ProtoMessage()
- func (x *ResponseStatus) ProtoReflect() protoreflect.Message
- func (x *ResponseStatus) Reset()
- func (x *ResponseStatus) String() string
- type Rpc
- func (*Rpc) Descriptor() ([]byte, []int)deprecated
- func (x *Rpc) GetBody() *Body
- func (x *Rpc) GetHeader() *RequestHeader
- func (x *Rpc) GetId() uint64
- func (x *Rpc) GetReset_() *Reset
- func (x *Rpc) GetStatus() *ResponseStatus
- func (x *Rpc) GetTrailer() *Trailer
- func (*Rpc) ProtoMessage()
- func (x *Rpc) ProtoReflect() protoreflect.Message
- func (x *Rpc) Reset()
- func (x *Rpc) String() string
- type Trailer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_goatorepo_rpc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Body) Descriptor
deprecated
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) ProtoReflect ¶
func (x *Body) ProtoReflect() protoreflect.Message
type KeyValue ¶
type KeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶
func (x *KeyValue) ProtoReflect() protoreflect.Message
type RequestHeader ¶
type RequestHeader struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Headers []*KeyValue `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"` ProxyRecord []string `protobuf:"bytes,5,rep,name=proxy_record,json=proxyRecord,proto3" json:"proxy_record,omitempty"` ProxyNext []string `protobuf:"bytes,6,rep,name=proxy_next,json=proxyNext,proto3" json:"proxy_next,omitempty"` // contains filtered or unexported fields }
func (*RequestHeader) Descriptor
deprecated
func (*RequestHeader) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.
func (*RequestHeader) GetDestination ¶
func (x *RequestHeader) GetDestination() string
func (*RequestHeader) GetHeaders ¶
func (x *RequestHeader) GetHeaders() []*KeyValue
func (*RequestHeader) GetMethod ¶
func (x *RequestHeader) GetMethod() string
func (*RequestHeader) GetProxyNext ¶
func (x *RequestHeader) GetProxyNext() []string
func (*RequestHeader) GetProxyRecord ¶
func (x *RequestHeader) GetProxyRecord() []string
func (*RequestHeader) GetSource ¶
func (x *RequestHeader) GetSource() string
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
func (*RequestHeader) ProtoReflect ¶
func (x *RequestHeader) ProtoReflect() protoreflect.Message
func (*RequestHeader) Reset ¶
func (x *RequestHeader) Reset()
func (*RequestHeader) String ¶
func (x *RequestHeader) String() string
type Reset ¶ added in v0.1.3
type Reset struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Reset) Descriptor
deprecated
added in
v0.1.3
func (*Reset) ProtoMessage ¶ added in v0.1.3
func (*Reset) ProtoMessage()
func (*Reset) ProtoReflect ¶ added in v0.1.3
func (x *Reset) ProtoReflect() protoreflect.Message
type ResponseStatus ¶
type ResponseStatus struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
Based on https://cloud.google.com/apis/design/errors See: https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto
func (*ResponseStatus) Descriptor
deprecated
func (*ResponseStatus) Descriptor() ([]byte, []int)
Deprecated: Use ResponseStatus.ProtoReflect.Descriptor instead.
func (*ResponseStatus) GetCode ¶
func (x *ResponseStatus) GetCode() int32
func (*ResponseStatus) GetDetails ¶
func (x *ResponseStatus) GetDetails() []*anypb.Any
func (*ResponseStatus) GetMessage ¶
func (x *ResponseStatus) GetMessage() string
func (*ResponseStatus) ProtoMessage ¶
func (*ResponseStatus) ProtoMessage()
func (*ResponseStatus) ProtoReflect ¶
func (x *ResponseStatus) ProtoReflect() protoreflect.Message
func (*ResponseStatus) Reset ¶
func (x *ResponseStatus) Reset()
func (*ResponseStatus) String ¶
func (x *ResponseStatus) String() string
type Rpc ¶
type Rpc struct { // Analogous to a "Stream Identifier" in HTTP/2: allocated by the initator of an RPC, a // unique identifier used to group requests and responses specific to this request. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Information identifying the request to be made; hence always set in the initial // request. At a minimum in such a request, the RPC method to be invoked is set. This // information is transferred in the URL path in HTTP/2. Header *RequestHeader `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` // When a request finishes, it is explicitly marked with a status code, and // with trailers. In HTTP/2 this is communicated with a HEADERS frame following the // response DATA frame, with certain canonical headers set like `grpc-status`. Status *ResponseStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // The actual RPC request or response data: just some opaque bytes, this is usually // protobuf-serialised bytes. Body *Body `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // Like status, this is sent as part of a response, and allows arbitrary key/values // to be communicated. This maps onto "Trailers" in the HTTP/2 encoding, but without // status-code, which is encoded explicitly above. Trailer *Trailer `protobuf:"bytes,5,opt,name=trailer,proto3" json:"trailer,omitempty"` // Abnormal reset information, like RST_STREAM in HTTP/2. Reset_ *Reset `protobuf:"bytes,6,opt,name=reset,proto3" json:"reset,omitempty"` // contains filtered or unexported fields }
Top-level message used for all GOAT communications.
func (*Rpc) Descriptor
deprecated
func (*Rpc) GetHeader ¶
func (x *Rpc) GetHeader() *RequestHeader
func (*Rpc) GetStatus ¶
func (x *Rpc) GetStatus() *ResponseStatus
func (*Rpc) GetTrailer ¶
func (*Rpc) ProtoMessage ¶
func (*Rpc) ProtoMessage()
func (*Rpc) ProtoReflect ¶
func (x *Rpc) ProtoReflect() protoreflect.Message
type Trailer ¶
type Trailer struct { Metadata []*KeyValue `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Signals that a stream is done. Used only as a response.
func (*Trailer) Descriptor
deprecated
func (*Trailer) GetMetadata ¶
func (*Trailer) ProtoMessage ¶
func (*Trailer) ProtoMessage()
func (*Trailer) ProtoReflect ¶
func (x *Trailer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.