Documentation
¶
Index ¶
Constants ¶
const (
Chiller_Chill_FullMethodName = "/Chiller/Chill"
)
Variables ¶
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", }
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 File_interceptors_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChillerServer ¶
func RegisterChillerServer(s grpc.ServiceRegistrar, srv ChillerServer)
Types ¶
type ChillerClient ¶
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) }
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.
func NewChillerClient ¶
func NewChillerClient(cc grpc.ClientConnInterface) ChillerClient
type ChillerServer ¶
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 }
ChillerServer is the server API for Chiller service. All implementations must embed UnimplementedChillerServer for forward compatibility
type Time ¶
type Time struct { Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*Time) Descriptor
deprecated
func (*Time) GetDuration ¶
func (x *Time) GetDuration() *durationpb.Duration
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (*Time) ProtoReflect ¶
func (x *Time) ProtoReflect() protoreflect.Message
type UnimplementedChillerServer ¶
type UnimplementedChillerServer struct { }
UnimplementedChillerServer must be embedded to have forward compatible implementations.
type UnsafeChillerServer ¶
type UnsafeChillerServer interface {
// contains filtered or unexported methods
}
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.