grpc

package
v0.0.0-...-e30beb1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompanyToGrpcCompany

func CompanyToGrpcCompany(item *model.Company) *grpc.Company

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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