Documentation ¶
Index ¶
- Variables
- func RegisterTrainerServiceServer(s grpc.ServiceRegistrar, srv TrainerServiceServer)
- type IsHourAvailableRequest
- func (*IsHourAvailableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsHourAvailableRequest) GetTime() *timestamp.Timestamp
- func (*IsHourAvailableRequest) ProtoMessage()
- func (x *IsHourAvailableRequest) ProtoReflect() protoreflect.Message
- func (x *IsHourAvailableRequest) Reset()
- func (x *IsHourAvailableRequest) String() string
- type IsHourAvailableResponse
- func (*IsHourAvailableResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsHourAvailableResponse) GetIsAvailable() bool
- func (*IsHourAvailableResponse) ProtoMessage()
- func (x *IsHourAvailableResponse) ProtoReflect() protoreflect.Message
- func (x *IsHourAvailableResponse) Reset()
- func (x *IsHourAvailableResponse) String() string
- type TrainerServiceClient
- type TrainerServiceServer
- type UnimplementedTrainerServiceServer
- func (UnimplementedTrainerServiceServer) CancelTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error)
- func (UnimplementedTrainerServiceServer) IsHourAvailable(context.Context, *IsHourAvailableRequest) (*IsHourAvailableResponse, error)
- func (UnimplementedTrainerServiceServer) MakeHourAvailable(context.Context, *UpdateHourRequest) (*empty.Empty, error)
- func (UnimplementedTrainerServiceServer) ScheduleTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error)
- type UnsafeTrainerServiceServer
- type UpdateHourRequest
- func (*UpdateHourRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateHourRequest) GetTime() *timestamp.Timestamp
- func (*UpdateHourRequest) ProtoMessage()
- func (x *UpdateHourRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateHourRequest) Reset()
- func (x *UpdateHourRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_trainer_proto protoreflect.FileDescriptor
var TrainerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "trainer.TrainerService", HandlerType: (*TrainerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsHourAvailable", Handler: _TrainerService_IsHourAvailable_Handler, }, { MethodName: "ScheduleTraining", Handler: _TrainerService_ScheduleTraining_Handler, }, { MethodName: "CancelTraining", Handler: _TrainerService_CancelTraining_Handler, }, { MethodName: "MakeHourAvailable", Handler: _TrainerService_MakeHourAvailable_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "trainer.proto", }
TrainerService_ServiceDesc is the grpc.ServiceDesc for TrainerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTrainerServiceServer ¶
func RegisterTrainerServiceServer(s grpc.ServiceRegistrar, srv TrainerServiceServer)
Types ¶
type IsHourAvailableRequest ¶
type IsHourAvailableRequest struct { Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*IsHourAvailableRequest) Descriptor
deprecated
func (*IsHourAvailableRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsHourAvailableRequest.ProtoReflect.Descriptor instead.
func (*IsHourAvailableRequest) GetTime ¶
func (x *IsHourAvailableRequest) GetTime() *timestamp.Timestamp
func (*IsHourAvailableRequest) ProtoMessage ¶
func (*IsHourAvailableRequest) ProtoMessage()
func (*IsHourAvailableRequest) ProtoReflect ¶
func (x *IsHourAvailableRequest) ProtoReflect() protoreflect.Message
func (*IsHourAvailableRequest) Reset ¶
func (x *IsHourAvailableRequest) Reset()
func (*IsHourAvailableRequest) String ¶
func (x *IsHourAvailableRequest) String() string
type IsHourAvailableResponse ¶
type IsHourAvailableResponse struct { IsAvailable bool `protobuf:"varint,1,opt,name=is_available,json=isAvailable,proto3" json:"is_available,omitempty"` // contains filtered or unexported fields }
func (*IsHourAvailableResponse) Descriptor
deprecated
func (*IsHourAvailableResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsHourAvailableResponse.ProtoReflect.Descriptor instead.
func (*IsHourAvailableResponse) GetIsAvailable ¶
func (x *IsHourAvailableResponse) GetIsAvailable() bool
func (*IsHourAvailableResponse) ProtoMessage ¶
func (*IsHourAvailableResponse) ProtoMessage()
func (*IsHourAvailableResponse) ProtoReflect ¶
func (x *IsHourAvailableResponse) ProtoReflect() protoreflect.Message
func (*IsHourAvailableResponse) Reset ¶
func (x *IsHourAvailableResponse) Reset()
func (*IsHourAvailableResponse) String ¶
func (x *IsHourAvailableResponse) String() string
type TrainerServiceClient ¶
type TrainerServiceClient interface { IsHourAvailable(ctx context.Context, in *IsHourAvailableRequest, opts ...grpc.CallOption) (*IsHourAvailableResponse, error) ScheduleTraining(ctx context.Context, in *UpdateHourRequest, opts ...grpc.CallOption) (*empty.Empty, error) CancelTraining(ctx context.Context, in *UpdateHourRequest, opts ...grpc.CallOption) (*empty.Empty, error) MakeHourAvailable(ctx context.Context, in *UpdateHourRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
TrainerServiceClient is the client API for TrainerService 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 NewTrainerServiceClient ¶
func NewTrainerServiceClient(cc grpc.ClientConnInterface) TrainerServiceClient
type TrainerServiceServer ¶
type TrainerServiceServer interface { IsHourAvailable(context.Context, *IsHourAvailableRequest) (*IsHourAvailableResponse, error) ScheduleTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error) CancelTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error) MakeHourAvailable(context.Context, *UpdateHourRequest) (*empty.Empty, error) }
TrainerServiceServer is the server API for TrainerService service. All implementations should embed UnimplementedTrainerServiceServer for forward compatibility
type UnimplementedTrainerServiceServer ¶
type UnimplementedTrainerServiceServer struct { }
UnimplementedTrainerServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTrainerServiceServer) CancelTraining ¶
func (UnimplementedTrainerServiceServer) CancelTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error)
func (UnimplementedTrainerServiceServer) IsHourAvailable ¶
func (UnimplementedTrainerServiceServer) IsHourAvailable(context.Context, *IsHourAvailableRequest) (*IsHourAvailableResponse, error)
func (UnimplementedTrainerServiceServer) MakeHourAvailable ¶
func (UnimplementedTrainerServiceServer) MakeHourAvailable(context.Context, *UpdateHourRequest) (*empty.Empty, error)
func (UnimplementedTrainerServiceServer) ScheduleTraining ¶
func (UnimplementedTrainerServiceServer) ScheduleTraining(context.Context, *UpdateHourRequest) (*empty.Empty, error)
type UnsafeTrainerServiceServer ¶
type UnsafeTrainerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTrainerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrainerServiceServer will result in compilation errors.
type UpdateHourRequest ¶
type UpdateHourRequest struct { Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*UpdateHourRequest) Descriptor
deprecated
func (*UpdateHourRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHourRequest.ProtoReflect.Descriptor instead.
func (*UpdateHourRequest) GetTime ¶
func (x *UpdateHourRequest) GetTime() *timestamp.Timestamp
func (*UpdateHourRequest) ProtoMessage ¶
func (*UpdateHourRequest) ProtoMessage()
func (*UpdateHourRequest) ProtoReflect ¶
func (x *UpdateHourRequest) ProtoReflect() protoreflect.Message
func (*UpdateHourRequest) Reset ¶
func (x *UpdateHourRequest) Reset()
func (*UpdateHourRequest) String ¶
func (x *UpdateHourRequest) String() string