pb

package
v0.0.0-...-d9682be Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tomato_proto protoreflect.FileDescriptor
View Source
var TomatoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tomato.pb.TomatoService",
	HandlerType: (*TomatoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _TomatoService_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _TomatoService_Stop_Handler,
		},
		{
			MethodName: "Remaining",
			Handler:    _TomatoService_Remaining_Handler,
		},
		{
			MethodName: "Running",
			Handler:    _TomatoService_Running_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tomato.proto",
}

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

Functions

func RegisterTomatoServiceServer

func RegisterTomatoServiceServer(s grpc.ServiceRegistrar, srv TomatoServiceServer)

Types

type TomatoServiceClient

type TomatoServiceClient interface {
	Start(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*timestamppb.Timestamp, error)
	Stop(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*durationpb.Duration, error)
	Remaining(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*durationpb.Duration, error)
	Running(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error)
}

TomatoServiceClient is the client API for TomatoService 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 TomatoServiceServer

type TomatoServiceServer interface {
	Start(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error)
	Stop(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
	Remaining(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
	Running(context.Context, *emptypb.Empty) (*wrapperspb.BoolValue, error)
	// contains filtered or unexported methods
}

TomatoServiceServer is the server API for TomatoService service. All implementations must embed UnimplementedTomatoServiceServer for forward compatibility

type UnimplementedTomatoServiceServer

type UnimplementedTomatoServiceServer struct {
}

UnimplementedTomatoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTomatoServiceServer) Remaining

func (UnimplementedTomatoServiceServer) Running

func (UnimplementedTomatoServiceServer) Start

func (UnimplementedTomatoServiceServer) Stop

type UnsafeTomatoServiceServer

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

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

Jump to

Keyboard shortcuts

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