api

package
v0.0.0-...-8b05a81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) DiscardLRO

func (*UnimplementedDiagnosticServer) Echo

func (*UnimplementedDiagnosticServer) EchoLRO

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL