Documentation ¶
Index ¶
- func RegisterDiagnosticServer(s *grpc.Server, srv DiagnosticServer)
- type DiagnosticClient
- type DiagnosticServer
- type DiscardRequest
- func (*DiscardRequest) Descriptor() ([]byte, []int)
- func (m *DiscardRequest) GetText() string
- func (*DiscardRequest) ProtoMessage()
- func (m *DiscardRequest) Reset()
- func (m *DiscardRequest) String() string
- func (m *DiscardRequest) XXX_DiscardUnknown()
- func (m *DiscardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DiscardRequest) XXX_Merge(src proto.Message)
- func (m *DiscardRequest) XXX_Size() int
- func (m *DiscardRequest) XXX_Unmarshal(b []byte) error
- type EchoRequest
- func (*EchoRequest) Descriptor() ([]byte, []int)
- func (m *EchoRequest) GetText() string
- func (*EchoRequest) ProtoMessage()
- func (m *EchoRequest) Reset()
- func (m *EchoRequest) String() string
- 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) GetText() string
- func (*EchoResponse) ProtoMessage()
- func (m *EchoResponse) Reset()
- func (m *EchoResponse) String() string
- 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 UnimplementedDiagnosticServer
- func (*UnimplementedDiagnosticServer) Discard(ctx context.Context, req *DiscardRequest) (*empty.Empty, error)
- func (*UnimplementedDiagnosticServer) DiscardLRO(ctx context.Context, req *DiscardRequest) (*longrunning.Operation, error)
- func (*UnimplementedDiagnosticServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
- func (*UnimplementedDiagnosticServer) EchoLRO(ctx context.Context, req *EchoRequest) (*longrunning.Operation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDiagnosticServer ¶
func RegisterDiagnosticServer(s *grpc.Server, srv DiagnosticServer)
Types ¶
type DiagnosticClient ¶
type DiagnosticClient interface { // Echos back whatever is sent Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) EchoLRO(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Discards anything sent Discard(ctx context.Context, in *DiscardRequest, opts ...grpc.CallOption) (*empty.Empty, error) DiscardLRO(ctx context.Context, in *DiscardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) }
DiagnosticClient is the client API for Diagnostic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDiagnosticClient ¶
func NewDiagnosticClient(cc *grpc.ClientConn) DiagnosticClient
type DiagnosticServer ¶
type DiagnosticServer interface { // Echos back whatever is sent Echo(context.Context, *EchoRequest) (*EchoResponse, error) EchoLRO(context.Context, *EchoRequest) (*longrunning.Operation, error) // Discards anything sent Discard(context.Context, *DiscardRequest) (*empty.Empty, error) DiscardLRO(context.Context, *DiscardRequest) (*longrunning.Operation, error) }
DiagnosticServer is the server API for Diagnostic service.
type DiscardRequest ¶
type DiscardRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DiscardRequest) Descriptor ¶
func (*DiscardRequest) Descriptor() ([]byte, []int)
func (*DiscardRequest) GetText ¶
func (m *DiscardRequest) GetText() string
func (*DiscardRequest) ProtoMessage ¶
func (*DiscardRequest) ProtoMessage()
func (*DiscardRequest) Reset ¶
func (m *DiscardRequest) Reset()
func (*DiscardRequest) String ¶
func (m *DiscardRequest) String() string
func (*DiscardRequest) XXX_DiscardUnknown ¶
func (m *DiscardRequest) XXX_DiscardUnknown()
func (*DiscardRequest) XXX_Marshal ¶
func (m *DiscardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DiscardRequest) XXX_Merge ¶
func (m *DiscardRequest) XXX_Merge(src proto.Message)
func (*DiscardRequest) XXX_Size ¶
func (m *DiscardRequest) XXX_Size() int
func (*DiscardRequest) XXX_Unmarshal ¶
func (m *DiscardRequest) XXX_Unmarshal(b []byte) error
type EchoRequest ¶
type EchoRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetText ¶
func (m *EchoRequest) GetText() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
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 { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetText ¶
func (m *EchoResponse) GetText() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
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 UnimplementedDiagnosticServer ¶
type UnimplementedDiagnosticServer struct { }
UnimplementedDiagnosticServer can be embedded to have forward compatible implementations.
func (*UnimplementedDiagnosticServer) Discard ¶
func (*UnimplementedDiagnosticServer) Discard(ctx context.Context, req *DiscardRequest) (*empty.Empty, error)
func (*UnimplementedDiagnosticServer) DiscardLRO ¶
func (*UnimplementedDiagnosticServer) DiscardLRO(ctx context.Context, req *DiscardRequest) (*longrunning.Operation, error)
func (*UnimplementedDiagnosticServer) Echo ¶
func (*UnimplementedDiagnosticServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
func (*UnimplementedDiagnosticServer) EchoLRO ¶
func (*UnimplementedDiagnosticServer) EchoLRO(ctx context.Context, req *EchoRequest) (*longrunning.Operation, error)
Click to show internal directories.
Click to hide internal directories.