paramedics

package
v0.0.0-...-e50672f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_domain_paramedics_proto_paramedic_dto_proto protoreflect.FileDescriptor
View Source
var Paramedic_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "paramedics.Paramedic",
	HandlerType: (*ParamedicServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateParamedic",
			Handler:    _Paramedic_CreateParamedic_Handler,
		},
		{
			MethodName: "FindByHospital",
			Handler:    _Paramedic_FindByHospital_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "domain/paramedics/proto/paramedic_dto.proto",
}

Paramedic_ServiceDesc is the grpc.ServiceDesc for Paramedic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func NewParamedicHandlerGPRC

func NewParamedicHandlerGPRC(svc service) paramedicHandlerGrpc

func NewParamedichHandlerGPRC

func NewParamedichHandlerGPRC(svc service) paramedicHandlerGrpc

func NewRepo

func NewRepo(db *sqlx.DB) paramedicRepo

func NewService

func NewService(repo Repository) service

func RegisterParamedicServer

func RegisterParamedicServer(s grpc.ServiceRegistrar, srv ParamedicServer)

func RegisterRouteGRPC

func RegisterRouteGRPC(server *grpc.Server, db *sqlx.DB)

Types

type FindByHospitalRequest

type FindByHospitalRequest struct {
	HospitalId string `json:"hospitalid" validate:"required"`
}

type ListparamedicProto

type ListparamedicProto struct {
	Paramedics []*ParamedicProto `protobuf:"bytes,1,rep,name=paramedics,proto3" json:"paramedics,omitempty"`
	// contains filtered or unexported fields
}

func (*ListparamedicProto) Descriptor deprecated

func (*ListparamedicProto) Descriptor() ([]byte, []int)

Deprecated: Use ListparamedicProto.ProtoReflect.Descriptor instead.

func (*ListparamedicProto) GetParamedics

func (x *ListparamedicProto) GetParamedics() []*ParamedicProto

func (*ListparamedicProto) ProtoMessage

func (*ListparamedicProto) ProtoMessage()

func (*ListparamedicProto) ProtoReflect

func (x *ListparamedicProto) ProtoReflect() protoreflect.Message

func (*ListparamedicProto) Reset

func (x *ListparamedicProto) Reset()

func (*ListparamedicProto) String

func (x *ListparamedicProto) String() string

type ParamedicClient

type ParamedicClient interface {
	CreateParamedic(ctx context.Context, in *ParamedicCreateProto, opts ...grpc.CallOption) (*ParamedicProto, error)
	FindByHospital(ctx context.Context, in *ParamedicFindByHospitalProto, opts ...grpc.CallOption) (*ListparamedicProto, error)
}

ParamedicClient is the client API for Paramedic 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 NewParamedicClient

func NewParamedicClient(cc grpc.ClientConnInterface) ParamedicClient

type ParamedicCreateProto

type ParamedicCreateProto struct {
	Firstname  string `protobuf:"bytes,1,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname   string `protobuf:"bytes,2,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Email      string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Usercreate string `protobuf:"bytes,4,opt,name=usercreate,proto3" json:"usercreate,omitempty"`
	// contains filtered or unexported fields
}

func (*ParamedicCreateProto) Descriptor deprecated

func (*ParamedicCreateProto) Descriptor() ([]byte, []int)

Deprecated: Use ParamedicCreateProto.ProtoReflect.Descriptor instead.

func (*ParamedicCreateProto) GetEmail

func (x *ParamedicCreateProto) GetEmail() string

func (*ParamedicCreateProto) GetFirstname

func (x *ParamedicCreateProto) GetFirstname() string

func (*ParamedicCreateProto) GetLastname

func (x *ParamedicCreateProto) GetLastname() string

func (*ParamedicCreateProto) GetUsercreate

func (x *ParamedicCreateProto) GetUsercreate() string

func (*ParamedicCreateProto) ProtoMessage

func (*ParamedicCreateProto) ProtoMessage()

func (*ParamedicCreateProto) ProtoReflect

func (x *ParamedicCreateProto) ProtoReflect() protoreflect.Message

func (*ParamedicCreateProto) Reset

func (x *ParamedicCreateProto) Reset()

func (*ParamedicCreateProto) String

func (x *ParamedicCreateProto) String() string

type ParamedicFindByHospitalProto

type ParamedicFindByHospitalProto struct {
	Hospitalid string `protobuf:"bytes,1,opt,name=hospitalid,proto3" json:"hospitalid,omitempty"`
	// contains filtered or unexported fields
}

func (*ParamedicFindByHospitalProto) Descriptor deprecated

func (*ParamedicFindByHospitalProto) Descriptor() ([]byte, []int)

Deprecated: Use ParamedicFindByHospitalProto.ProtoReflect.Descriptor instead.

func (*ParamedicFindByHospitalProto) GetHospitalid

func (x *ParamedicFindByHospitalProto) GetHospitalid() string

func (*ParamedicFindByHospitalProto) ProtoMessage

func (*ParamedicFindByHospitalProto) ProtoMessage()

func (*ParamedicFindByHospitalProto) ProtoReflect

func (*ParamedicFindByHospitalProto) Reset

func (x *ParamedicFindByHospitalProto) Reset()

func (*ParamedicFindByHospitalProto) String

type ParamedicProto

type ParamedicProto struct {
	Paramedicid string `protobuf:"bytes,1,opt,name=paramedicid,proto3" json:"paramedicid,omitempty"`
	Firstname   string `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname    string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Email       string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*ParamedicProto) Descriptor deprecated

func (*ParamedicProto) Descriptor() ([]byte, []int)

Deprecated: Use ParamedicProto.ProtoReflect.Descriptor instead.

func (*ParamedicProto) GetEmail

func (x *ParamedicProto) GetEmail() string

func (*ParamedicProto) GetFirstname

func (x *ParamedicProto) GetFirstname() string

func (*ParamedicProto) GetLastname

func (x *ParamedicProto) GetLastname() string

func (*ParamedicProto) GetParamedicid

func (x *ParamedicProto) GetParamedicid() string

func (*ParamedicProto) ProtoMessage

func (*ParamedicProto) ProtoMessage()

func (*ParamedicProto) ProtoReflect

func (x *ParamedicProto) ProtoReflect() protoreflect.Message

func (*ParamedicProto) Reset

func (x *ParamedicProto) Reset()

func (*ParamedicProto) String

func (x *ParamedicProto) String() string

type ParamedicServer

type ParamedicServer interface {
	CreateParamedic(context.Context, *ParamedicCreateProto) (*ParamedicProto, error)
	FindByHospital(context.Context, *ParamedicFindByHospitalProto) (*ListparamedicProto, error)
	// contains filtered or unexported methods
}

ParamedicServer is the server API for Paramedic service. All implementations must embed UnimplementedParamedicServer for forward compatibility

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

type UnimplementedParamedicServer

type UnimplementedParamedicServer struct {
}

UnimplementedParamedicServer must be embedded to have forward compatible implementations.

func (UnimplementedParamedicServer) CreateParamedic

func (UnimplementedParamedicServer) FindByHospital

type UnsafeParamedicServer

type UnsafeParamedicServer interface {
	// contains filtered or unexported methods
}

UnsafeParamedicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParamedicServer will result in compilation errors.

Jump to

Keyboard shortcuts

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