diagnostic

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiagnosticService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sis.rp.dev.v1.DiagnosticService",
	HandlerType: (*DiagnosticServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _DiagnosticService_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "diagnostic/diagnostic.proto",
}

DiagnosticService_ServiceDesc is the grpc.ServiceDesc for DiagnosticService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_diagnostic_diagnostic_proto protoreflect.FileDescriptor

Functions

func RegisterDiagnosticServiceServer

func RegisterDiagnosticServiceServer(s grpc.ServiceRegistrar, srv DiagnosticServiceServer)

Types

type DiagnosticService

type DiagnosticService struct {
	UnimplementedDiagnosticServiceServer
	// contains filtered or unexported fields
}

func NewDiagnosticService

func NewDiagnosticService(log *zap.SugaredLogger) DiagnosticService

func (DiagnosticService) Ping

func (s DiagnosticService) Ping(ctx context.Context, request *PingRequest) (*PingResponse, error)

type DiagnosticServiceClient

type DiagnosticServiceClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

DiagnosticServiceClient is the client API for DiagnosticService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DiagnosticServiceServer

type DiagnosticServiceServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	// contains filtered or unexported methods
}

DiagnosticServiceServer is the server API for DiagnosticService service. All implementations must embed UnimplementedDiagnosticServiceServer for forward compatibility

type PingRequest

type PingRequest struct {
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

func (*PingRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

func (x *PingRequest) ProtoReflect() protoreflect.Message

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {
	Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

func (*PingResponse) Descriptor() ([]byte, []int)

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetAnswer

func (x *PingResponse) GetAnswer() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

func (x *PingResponse) ProtoReflect() protoreflect.Message

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type UnimplementedDiagnosticServiceServer

type UnimplementedDiagnosticServiceServer struct {
}

UnimplementedDiagnosticServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDiagnosticServiceServer) Ping

type UnsafeDiagnosticServiceServer

type UnsafeDiagnosticServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDiagnosticServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiagnosticServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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