Versions in this module Expand all Collapse all v0 v0.0.2 Aug 10, 2023 Changes in this version type Appointment + func (a *Appointment) ParseToAppointmentProto() *AppointmentProto type Repository + GetRepo func(ctx context.Context, m_strHealthcareId string, m_strAppointmentNo string) ([]Appointment, error) + ListRepo func(ctx context.Context) ([]Appointment, error) v0.0.1 Aug 10, 2023 Changes in this version + var AppointmentService_ServiceDesc = grpc.ServiceDesc + var File_domain_appointment_proto_appointment_proto protoreflect.FileDescriptor + func NewAppointmentGrpcHandler(p_oGrpcService appointmentService) appointmentGrpcHandler + func NewAppointmentHandler(p_oService appointmentService) appointmentHandler + func NewAppointmentRepository(p_oDatabase *sqlx.DB) appointmentRepository + func NewAppointmentService() appointmentService + func NewAppointmentServiceWithDB(p_oRepo Repository) appointmentService + func RegisterAppointmentServiceServer(s grpc.ServiceRegistrar, srv AppointmentServiceServer) + func RouterInit(r fiber.Router) + func RouterInitGRPC(server *grpc.Server, db *sqlx.DB) + func RouterInitWithDB(r fiber.Router, dbx *sqlx.DB) + type Appointment struct + AppointmentDate time.Time + AppointmentNo string + AppointmentTime time.Time + CreateAt time.Time + HealthcareId string + IsVoid bool + ParamedicId string + PatientId string + ScheduleSlotId int + UserCreate string + type AppointmentAddProto struct + Addappointment *AppointmentProto + func (*AppointmentAddProto) Descriptor() ([]byte, []int) + func (*AppointmentAddProto) ProtoMessage() + func (x *AppointmentAddProto) GetAddappointment() *AppointmentProto + func (x *AppointmentAddProto) ProtoReflect() protoreflect.Message + func (x *AppointmentAddProto) Reset() + func (x *AppointmentAddProto) String() string + type AppointmentDeleteProto struct + Deleteappointment *AppointmentProto + func (*AppointmentDeleteProto) Descriptor() ([]byte, []int) + func (*AppointmentDeleteProto) ProtoMessage() + func (x *AppointmentDeleteProto) GetDeleteappointment() *AppointmentProto + func (x *AppointmentDeleteProto) ProtoReflect() protoreflect.Message + func (x *AppointmentDeleteProto) Reset() + func (x *AppointmentDeleteProto) String() string + type AppointmentDeleteResponseProto struct + AppointmentNo string + HealthcareId string + func (*AppointmentDeleteResponseProto) Descriptor() ([]byte, []int) + func (*AppointmentDeleteResponseProto) ProtoMessage() + func (x *AppointmentDeleteResponseProto) GetAppointmentNo() string + func (x *AppointmentDeleteResponseProto) GetHealthcareId() string + func (x *AppointmentDeleteResponseProto) ProtoReflect() protoreflect.Message + func (x *AppointmentDeleteResponseProto) Reset() + func (x *AppointmentDeleteResponseProto) String() string + type AppointmentGetProto struct + AppointmentNo string + HealthcareId string + func (*AppointmentGetProto) Descriptor() ([]byte, []int) + func (*AppointmentGetProto) ProtoMessage() + func (x *AppointmentGetProto) GetAppointmentNo() string + func (x *AppointmentGetProto) GetHealthcareId() string + func (x *AppointmentGetProto) ProtoReflect() protoreflect.Message + func (x *AppointmentGetProto) Reset() + func (x *AppointmentGetProto) String() string + type AppointmentListProto struct + Appointments []*AppointmentProto + func (*AppointmentListProto) Descriptor() ([]byte, []int) + func (*AppointmentListProto) ProtoMessage() + func (x *AppointmentListProto) GetAppointments() []*AppointmentProto + func (x *AppointmentListProto) ProtoReflect() protoreflect.Message + func (x *AppointmentListProto) Reset() + func (x *AppointmentListProto) String() string + type AppointmentListResponse struct + AppointmentDate time.Time + AppointmentNo string + AppointmentTime time.Time + CreateAt time.Time + HealthcareId string + IsVoid bool + ParamedicId string + PatientId string + ScheduleSlotId int + UserCreate string + type AppointmentProto struct + AppointmentDate *timestamppb.Timestamp + AppointmentNo string + AppointmentTime *timestamppb.Timestamp + CreateAt *timestamppb.Timestamp + HealthcareId string + IsVoid bool + ParamedicId string + PatientId string + ScheduleSlotId int64 + UserCreate string + func (*AppointmentProto) Descriptor() ([]byte, []int) + func (*AppointmentProto) ProtoMessage() + func (x *AppointmentProto) GetAppointmentDate() *timestamppb.Timestamp + func (x *AppointmentProto) GetAppointmentNo() string + func (x *AppointmentProto) GetAppointmentTime() *timestamppb.Timestamp + func (x *AppointmentProto) GetCreateAt() *timestamppb.Timestamp + func (x *AppointmentProto) GetHealthcareId() string + func (x *AppointmentProto) GetIsVoid() bool + func (x *AppointmentProto) GetParamedicId() string + func (x *AppointmentProto) GetPatientId() string + func (x *AppointmentProto) GetScheduleSlotId() int64 + func (x *AppointmentProto) GetUserCreate() string + func (x *AppointmentProto) ProtoReflect() protoreflect.Message + func (x *AppointmentProto) Reset() + func (x *AppointmentProto) String() string + type AppointmentRequest struct + AppointmentDate time.Time + AppointmentNo string + AppointmentTime time.Time + CreateAt time.Time + HealthcareId string + IsVoid bool + ParamedicId string + PatientId string + ScheduleSlotId int + UserCreate string + func (a AppointmentRequest) ParseToEntity() Appointment + func (a AppointmentRequest) Validate() (err error) + type AppointmentServiceClient interface + Add func(ctx context.Context, in *AppointmentAddProto, opts ...grpc.CallOption) (*AppointmentProto, error) + Delete func(ctx context.Context, in *AppointmentDeleteProto, opts ...grpc.CallOption) (*AppointmentDeleteResponseProto, error) + Get func(ctx context.Context, in *AppointmentGetProto, opts ...grpc.CallOption) (*AppointmentProto, error) + List func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AppointmentListProto, error) + ListByParam func(ctx context.Context, in *AppointmentProto, opts ...grpc.CallOption) (*AppointmentListProto, error) + Update func(ctx context.Context, in *AppointmentUpdateProto, opts ...grpc.CallOption) (*AppointmentProto, error) + func NewAppointmentServiceClient(cc grpc.ClientConnInterface) AppointmentServiceClient + type AppointmentServiceServer interface + Add func(context.Context, *AppointmentAddProto) (*AppointmentProto, error) + Delete func(context.Context, *AppointmentDeleteProto) (*AppointmentDeleteResponseProto, error) + Get func(context.Context, *AppointmentGetProto) (*AppointmentProto, error) + List func(context.Context, *emptypb.Empty) (*AppointmentListProto, error) + ListByParam func(context.Context, *AppointmentProto) (*AppointmentListProto, error) + Update func(context.Context, *AppointmentUpdateProto) (*AppointmentProto, error) + type AppointmentUpdateProto struct + Updateappointment *AppointmentProto + func (*AppointmentUpdateProto) Descriptor() ([]byte, []int) + func (*AppointmentUpdateProto) ProtoMessage() + func (x *AppointmentUpdateProto) GetUpdateappointment() *AppointmentProto + func (x *AppointmentUpdateProto) ProtoReflect() protoreflect.Message + func (x *AppointmentUpdateProto) Reset() + func (x *AppointmentUpdateProto) String() string + type ErrorResponse struct + FailedField string + Tag string + Value string + func ValidateStruct(user interface{}) []ErrorResponse + type Repository interface + AddRepo func(ctx context.Context, app Appointment) (p_strAppointmentNo string, err error) + type UnimplementedAppointmentServiceServer struct + func (UnimplementedAppointmentServiceServer) Add(context.Context, *AppointmentAddProto) (*AppointmentProto, error) + func (UnimplementedAppointmentServiceServer) Delete(context.Context, *AppointmentDeleteProto) (*AppointmentDeleteResponseProto, error) + func (UnimplementedAppointmentServiceServer) Get(context.Context, *AppointmentGetProto) (*AppointmentProto, error) + func (UnimplementedAppointmentServiceServer) List(context.Context, *emptypb.Empty) (*AppointmentListProto, error) + func (UnimplementedAppointmentServiceServer) ListByParam(context.Context, *AppointmentProto) (*AppointmentListProto, error) + func (UnimplementedAppointmentServiceServer) Update(context.Context, *AppointmentUpdateProto) (*AppointmentProto, error) + type UnsafeAppointmentServiceServer interface