Chiller_ServiceDesc is the grpc.ServiceDesc for Chiller service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Chiller_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Chiller", HandlerType: (*ChillerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Chill", Handler: _Chiller_Chill_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "interceptors_test.proto", }
var File_interceptors_test_proto protoreflect.FileDescriptor
func RegisterChillerServer(s grpc.ServiceRegistrar, srv ChillerServer)
ChillerClient is the client API for Chiller 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 ChillerClient interface { // Sleep for the given amount of time, and return the amount of time slept. Chill(ctx context.Context, in *Time, opts ...grpc.CallOption) (*Time, error) }
func NewChillerClient(cc grpc.ClientConnInterface) ChillerClient
ChillerServer is the server API for Chiller service. All implementations must embed UnimplementedChillerServer for forward compatibility
type ChillerServer interface { // Sleep for the given amount of time, and return the amount of time slept. Chill(context.Context, *Time) (*Time, error) // contains filtered or unexported methods }
type Time struct { Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*Time) Descriptor() ([]byte, []int)
Deprecated: Use Time.ProtoReflect.Descriptor instead.
func (x *Time) GetDuration() *durationpb.Duration
func (*Time) ProtoMessage()
func (x *Time) ProtoReflect() protoreflect.Message
func (x *Time) Reset()
func (x *Time) String() string
UnimplementedChillerServer must be embedded to have forward compatible implementations.
type UnimplementedChillerServer struct { }
func (UnimplementedChillerServer) Chill(context.Context, *Time) (*Time, error)
UnsafeChillerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChillerServer will result in compilation errors.
type UnsafeChillerServer interface {
// contains filtered or unexported methods
}