trainer

package
v0.0.0-...-e173b71 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_trainer_proto protoreflect.FileDescriptor
View Source
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 (*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.

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) IsHourAvailable

func (UnimplementedTrainerServiceServer) MakeHourAvailable

func (UnimplementedTrainerServiceServer) ScheduleTraining

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

Jump to

Keyboard shortcuts

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