Documentation ¶
Index ¶
- Variables
- func RegisterTomatoServiceServer(s grpc.ServiceRegistrar, srv TomatoServiceServer)
- type TomatoServiceClient
- type TomatoServiceServer
- type UnimplementedTomatoServiceServer
- func (UnimplementedTomatoServiceServer) Remaining(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
- func (UnimplementedTomatoServiceServer) Running(context.Context, *emptypb.Empty) (*wrapperspb.BoolValue, error)
- func (UnimplementedTomatoServiceServer) Start(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error)
- func (UnimplementedTomatoServiceServer) Stop(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
- type UnsafeTomatoServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_tomato_proto protoreflect.FileDescriptor
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.
func NewTomatoServiceClient ¶
func NewTomatoServiceClient(cc grpc.ClientConnInterface) TomatoServiceClient
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) Remaining(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
func (UnimplementedTomatoServiceServer) Running ¶
func (UnimplementedTomatoServiceServer) Running(context.Context, *emptypb.Empty) (*wrapperspb.BoolValue, error)
func (UnimplementedTomatoServiceServer) Start ¶
func (UnimplementedTomatoServiceServer) Start(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error)
func (UnimplementedTomatoServiceServer) Stop ¶
func (UnimplementedTomatoServiceServer) Stop(context.Context, *emptypb.Empty) (*durationpb.Duration, error)
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.