Documentation ¶
Index ¶
- Variables
- func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
- type EchoRequest
- func (*EchoRequest) Descriptor() ([]byte, []int)
- func (m *EchoRequest) GetData() string
- func (m *EchoRequest) Marshal() (dAtA []byte, err error)
- func (m *EchoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EchoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EchoRequest) ProtoMessage()
- func (m *EchoRequest) Reset()
- func (m *EchoRequest) Size() (n int)
- func (m *EchoRequest) String() string
- func (m *EchoRequest) Unmarshal(dAtA []byte) error
- func (m *EchoRequest) XXX_DiscardUnknown()
- func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoRequest) XXX_Merge(src proto.Message)
- func (m *EchoRequest) XXX_Size() int
- func (m *EchoRequest) XXX_Unmarshal(b []byte) error
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)
- func (m *EchoResponse) GetBackend() string
- func (m *EchoResponse) GetRequest() *Request
- func (m *EchoResponse) GetResponse() *Response
- func (m *EchoResponse) Marshal() (dAtA []byte, err error)
- func (m *EchoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *EchoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EchoResponse) ProtoMessage()
- func (m *EchoResponse) Reset()
- func (m *EchoResponse) Size() (n int)
- func (m *EchoResponse) String() string
- func (m *EchoResponse) Unmarshal(dAtA []byte) error
- func (m *EchoResponse) XXX_DiscardUnknown()
- func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoResponse) XXX_Merge(src proto.Message)
- func (m *EchoResponse) XXX_Size() int
- func (m *EchoResponse) XXX_Unmarshal(b []byte) error
- type EchoServiceClient
- type EchoServiceServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetHeaders() map[string]string
- func (m *Request) GetTls() *TLS
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetHeaders() map[string]string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type TLS
- func (*TLS) Descriptor() ([]byte, []int)
- func (m *TLS) GetEnabled() bool
- func (m *TLS) Marshal() (dAtA []byte, err error)
- func (m *TLS) MarshalTo(dAtA []byte) (int, error)
- func (m *TLS) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLS) ProtoMessage()
- func (m *TLS) Reset()
- func (m *TLS) Size() (n int)
- func (m *TLS) String() string
- func (m *TLS) Unmarshal(dAtA []byte) error
- func (m *TLS) XXX_DiscardUnknown()
- func (m *TLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLS) XXX_Merge(src proto.Message)
- func (m *TLS) XXX_Size() int
- func (m *TLS) XXX_Unmarshal(b []byte) error
- type UnimplementedEchoServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
Types ¶
type EchoRequest ¶
type EchoRequest struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetData ¶
func (m *EchoRequest) GetData() string
func (*EchoRequest) Marshal ¶
func (m *EchoRequest) Marshal() (dAtA []byte, err error)
func (*EchoRequest) MarshalToSizedBuffer ¶
func (m *EchoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) Size ¶
func (m *EchoRequest) Size() (n int)
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
func (*EchoRequest) Unmarshal ¶
func (m *EchoRequest) Unmarshal(dAtA []byte) error
func (*EchoRequest) XXX_DiscardUnknown ¶
func (m *EchoRequest) XXX_DiscardUnknown()
func (*EchoRequest) XXX_Marshal ¶
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoRequest) XXX_Merge ¶
func (m *EchoRequest) XXX_Merge(src proto.Message)
func (*EchoRequest) XXX_Size ¶
func (m *EchoRequest) XXX_Size() int
func (*EchoRequest) XXX_Unmarshal ¶
func (m *EchoRequest) XXX_Unmarshal(b []byte) error
type EchoResponse ¶
type EchoResponse struct { Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"` Request *Request `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetBackend ¶
func (m *EchoResponse) GetBackend() string
func (*EchoResponse) GetRequest ¶
func (m *EchoResponse) GetRequest() *Request
func (*EchoResponse) GetResponse ¶
func (m *EchoResponse) GetResponse() *Response
func (*EchoResponse) Marshal ¶
func (m *EchoResponse) Marshal() (dAtA []byte, err error)
func (*EchoResponse) MarshalToSizedBuffer ¶
func (m *EchoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) Size ¶
func (m *EchoResponse) Size() (n int)
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
func (*EchoResponse) Unmarshal ¶
func (m *EchoResponse) Unmarshal(dAtA []byte) error
func (*EchoResponse) XXX_DiscardUnknown ¶
func (m *EchoResponse) XXX_DiscardUnknown()
func (*EchoResponse) XXX_Marshal ¶
func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoResponse) XXX_Merge ¶
func (m *EchoResponse) XXX_Merge(src proto.Message)
func (*EchoResponse) XXX_Size ¶
func (m *EchoResponse) XXX_Size() int
func (*EchoResponse) XXX_Unmarshal ¶
func (m *EchoResponse) XXX_Unmarshal(b []byte) error
type EchoServiceClient ¶
type EchoServiceClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}
EchoServiceClient is the client API for EchoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient
type EchoServiceServer ¶
type EchoServiceServer interface {
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
}
EchoServiceServer is the server API for EchoService service.
type Request ¶
type Request struct { Headers map[string]string `` /* 155-byte string literal not displayed */ Tls *TLS `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetHeaders ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Headers map[string]string `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetHeaders ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type TLS ¶
type TLS struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TLS) Descriptor ¶
func (*TLS) GetEnabled ¶
func (*TLS) ProtoMessage ¶
func (*TLS) ProtoMessage()
func (*TLS) XXX_DiscardUnknown ¶
func (m *TLS) XXX_DiscardUnknown()
func (*TLS) XXX_Unmarshal ¶
type UnimplementedEchoServiceServer ¶
type UnimplementedEchoServiceServer struct { }
UnimplementedEchoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEchoServiceServer) Echo ¶
func (*UnimplementedEchoServiceServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
Click to show internal directories.
Click to hide internal directories.