Documentation ¶
Index ¶
- func CompanyToGrpcCompany(item *model.Company) *grpc.Company
- func GrpcCompanyToAPICompany(item *grpc.Company) *api_model.UpdateCompanyParams
- type GrpcService
- func (g *GrpcService) CreateCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.MsgReply, error)
- func (g *GrpcService) DeleteCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.MsgReply, error)
- func (g *GrpcService) GetCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.CompanyReply, error)
- func (g *GrpcService) ListCompanies(ctx context.Context, req *pb.CompanyQuery) (*pb.ListCompanyReply, error)
- func (g *GrpcService) UpdateCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.CompanyReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcCompanyToAPICompany ¶
func GrpcCompanyToAPICompany(item *grpc.Company) *api_model.UpdateCompanyParams
Types ¶
type GrpcService ¶
type GrpcService struct { pb.UnimplementedCompanyHandlerServer // contains filtered or unexported fields }
func New ¶
func New(s service) *GrpcService
func (*GrpcService) CreateCompany ¶
func (g *GrpcService) CreateCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.MsgReply, error)
func (*GrpcService) DeleteCompany ¶
func (g *GrpcService) DeleteCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.MsgReply, error)
func (*GrpcService) GetCompany ¶
func (g *GrpcService) GetCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.CompanyReply, error)
func (*GrpcService) ListCompanies ¶
func (g *GrpcService) ListCompanies(ctx context.Context, req *pb.CompanyQuery) (*pb.ListCompanyReply, error)
func (*GrpcService) UpdateCompany ¶
func (g *GrpcService) UpdateCompany(ctx context.Context, req *pb.CompanyRequest) (*pb.CompanyReply, error)
Click to show internal directories.
Click to hide internal directories.