Documentation ¶
Overview ¶
Package esigrpc is a generated protocol buffer package.
It is generated from these files:
grpc_data.proto
It has these top-level messages:
ResourceArgs HeaderBody
Index ¶
- func RegisterHeaderBodyServiceServer(s *grpc.Server, srv HeaderBodyServiceServer)
- func StringSliceToHeader(parts ...string) (http.Header, error)
- type HeaderBody
- type HeaderBodyServiceClient
- type HeaderBodyServiceServer
- type ResourceArgs
- func (*ResourceArgs) Descriptor() ([]byte, []int)
- func (m *ResourceArgs) GetExternalReq() *ResourceArgs_ExternalReq
- func (m *ResourceArgs) GetKey() string
- func (m *ResourceArgs) GetMaxBodySize() uint64
- func (m *ResourceArgs) GetReturnHeaders() []string
- func (m *ResourceArgs) GetReturnHeadersAll() bool
- func (m *ResourceArgs) GetUrl() string
- func (*ResourceArgs) ProtoMessage()
- func (m *ResourceArgs) Reset()
- func (m *ResourceArgs) String() string
- type ResourceArgs_ExternalReq
- func (*ResourceArgs_ExternalReq) Descriptor() ([]byte, []int)
- func (m *ResourceArgs_ExternalReq) GetBody() []byte
- func (m *ResourceArgs_ExternalReq) GetClose() bool
- func (m *ResourceArgs_ExternalReq) GetContentLength() int64
- func (m *ResourceArgs_ExternalReq) GetHeader() []string
- func (m *ResourceArgs_ExternalReq) GetHost() string
- func (m *ResourceArgs_ExternalReq) GetMethod() string
- func (m *ResourceArgs_ExternalReq) GetProto() string
- func (m *ResourceArgs_ExternalReq) GetProtoMajor() int32
- func (m *ResourceArgs_ExternalReq) GetProtoMinor() int32
- func (m *ResourceArgs_ExternalReq) GetRealIp() string
- func (m *ResourceArgs_ExternalReq) GetRemoteAddr() string
- func (m *ResourceArgs_ExternalReq) GetRequestUri() string
- func (m *ResourceArgs_ExternalReq) GetTransferEncoding() []string
- func (m *ResourceArgs_ExternalReq) GetUrl() string
- func (*ResourceArgs_ExternalReq) ProtoMessage()
- func (m *ResourceArgs_ExternalReq) Reset()
- func (m *ResourceArgs_ExternalReq) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHeaderBodyServiceServer ¶
func RegisterHeaderBodyServiceServer(s *grpc.Server, srv HeaderBodyServiceServer)
Types ¶
type HeaderBody ¶
type HeaderBody struct { Header []string `protobuf:"bytes,1,rep,name=header" json:"header,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` }
HeaderBody a return value like in the backend package but here the three return arguments are combined into one struct. If error is empty, then no error has happend.
func (*HeaderBody) Descriptor ¶
func (*HeaderBody) Descriptor() ([]byte, []int)
func (*HeaderBody) GetBody ¶
func (m *HeaderBody) GetBody() []byte
func (*HeaderBody) GetHeader ¶
func (m *HeaderBody) GetHeader() []string
func (*HeaderBody) ProtoMessage ¶
func (*HeaderBody) ProtoMessage()
func (*HeaderBody) Reset ¶
func (m *HeaderBody) Reset()
func (*HeaderBody) String ¶
func (m *HeaderBody) String() string
type HeaderBodyServiceClient ¶
type HeaderBodyServiceClient interface {
GetHeaderBody(ctx context.Context, in *ResourceArgs, opts ...grpc.CallOption) (*HeaderBody, error)
}
func NewHeaderBodyServiceClient ¶
func NewHeaderBodyServiceClient(cc *grpc.ClientConn) HeaderBodyServiceClient
type HeaderBodyServiceServer ¶
type HeaderBodyServiceServer interface {
GetHeaderBody(context.Context, *ResourceArgs) (*HeaderBody, error)
}
type ResourceArgs ¶
type ResourceArgs struct { ExternalReq *ResourceArgs_ExternalReq `protobuf:"bytes,1,opt,name=external_req,json=externalReq" json:"external_req,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` MaxBodySize uint64 `protobuf:"varint,3,opt,name=max_body_size,json=maxBodySize" json:"max_body_size,omitempty"` Key string `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"` ReturnHeaders []string `protobuf:"bytes,5,rep,name=return_headers,json=returnHeaders" json:"return_headers,omitempty"` ReturnHeadersAll bool `protobuf:"varint,6,opt,name=return_headers_all,json=returnHeadersAll" json:"return_headers_all,omitempty"` }
ResourceArg same as backend.ResourceArgs but stripped of some fields for security reasons.
func (*ResourceArgs) Descriptor ¶
func (*ResourceArgs) Descriptor() ([]byte, []int)
func (*ResourceArgs) GetExternalReq ¶
func (m *ResourceArgs) GetExternalReq() *ResourceArgs_ExternalReq
func (*ResourceArgs) GetKey ¶
func (m *ResourceArgs) GetKey() string
func (*ResourceArgs) GetMaxBodySize ¶
func (m *ResourceArgs) GetMaxBodySize() uint64
func (*ResourceArgs) GetReturnHeaders ¶
func (m *ResourceArgs) GetReturnHeaders() []string
func (*ResourceArgs) GetReturnHeadersAll ¶
func (m *ResourceArgs) GetReturnHeadersAll() bool
func (*ResourceArgs) GetUrl ¶
func (m *ResourceArgs) GetUrl() string
func (*ResourceArgs) ProtoMessage ¶
func (*ResourceArgs) ProtoMessage()
func (*ResourceArgs) Reset ¶
func (m *ResourceArgs) Reset()
func (*ResourceArgs) String ¶
func (m *ResourceArgs) String() string
type ResourceArgs_ExternalReq ¶
type ResourceArgs_ExternalReq struct { Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` Proto string `protobuf:"bytes,3,opt,name=proto" json:"proto,omitempty"` ProtoMajor int32 `protobuf:"varint,4,opt,name=proto_major,json=protoMajor" json:"proto_major,omitempty"` ProtoMinor int32 `protobuf:"varint,5,opt,name=proto_minor,json=protoMinor" json:"proto_minor,omitempty"` Header []string `protobuf:"bytes,6,rep,name=header" json:"header,omitempty"` ContentLength int64 `protobuf:"varint,7,opt,name=ContentLength" json:"ContentLength,omitempty"` TransferEncoding []string `protobuf:"bytes,8,rep,name=transfer_encoding,json=transferEncoding" json:"transfer_encoding,omitempty"` Close bool `protobuf:"varint,9,opt,name=close" json:"close,omitempty"` Host string `protobuf:"bytes,10,opt,name=host" json:"host,omitempty"` RemoteAddr string `protobuf:"bytes,11,opt,name=remote_addr,json=remoteAddr" json:"remote_addr,omitempty"` RealIp string `protobuf:"bytes,12,opt,name=real_ip,json=realIp" json:"real_ip,omitempty"` RequestUri string `protobuf:"bytes,13,opt,name=request_uri,json=requestUri" json:"request_uri,omitempty"` Body []byte `protobuf:"bytes,14,opt,name=body,proto3" json:"body,omitempty"` }
func (*ResourceArgs_ExternalReq) Descriptor ¶
func (*ResourceArgs_ExternalReq) Descriptor() ([]byte, []int)
func (*ResourceArgs_ExternalReq) GetBody ¶
func (m *ResourceArgs_ExternalReq) GetBody() []byte
func (*ResourceArgs_ExternalReq) GetClose ¶
func (m *ResourceArgs_ExternalReq) GetClose() bool
func (*ResourceArgs_ExternalReq) GetContentLength ¶
func (m *ResourceArgs_ExternalReq) GetContentLength() int64
func (*ResourceArgs_ExternalReq) GetHeader ¶
func (m *ResourceArgs_ExternalReq) GetHeader() []string
func (*ResourceArgs_ExternalReq) GetHost ¶
func (m *ResourceArgs_ExternalReq) GetHost() string
func (*ResourceArgs_ExternalReq) GetMethod ¶
func (m *ResourceArgs_ExternalReq) GetMethod() string
func (*ResourceArgs_ExternalReq) GetProto ¶
func (m *ResourceArgs_ExternalReq) GetProto() string
func (*ResourceArgs_ExternalReq) GetProtoMajor ¶
func (m *ResourceArgs_ExternalReq) GetProtoMajor() int32
func (*ResourceArgs_ExternalReq) GetProtoMinor ¶
func (m *ResourceArgs_ExternalReq) GetProtoMinor() int32
func (*ResourceArgs_ExternalReq) GetRealIp ¶
func (m *ResourceArgs_ExternalReq) GetRealIp() string
func (*ResourceArgs_ExternalReq) GetRemoteAddr ¶
func (m *ResourceArgs_ExternalReq) GetRemoteAddr() string
func (*ResourceArgs_ExternalReq) GetRequestUri ¶
func (m *ResourceArgs_ExternalReq) GetRequestUri() string
func (*ResourceArgs_ExternalReq) GetTransferEncoding ¶
func (m *ResourceArgs_ExternalReq) GetTransferEncoding() []string
func (*ResourceArgs_ExternalReq) GetUrl ¶
func (m *ResourceArgs_ExternalReq) GetUrl() string
func (*ResourceArgs_ExternalReq) ProtoMessage ¶
func (*ResourceArgs_ExternalReq) ProtoMessage()
func (*ResourceArgs_ExternalReq) Reset ¶
func (m *ResourceArgs_ExternalReq) Reset()
func (*ResourceArgs_ExternalReq) String ¶
func (m *ResourceArgs_ExternalReq) String() string
Click to show internal directories.
Click to hide internal directories.