Documentation
¶
Index ¶
- type ProjectHandler
- func (h *ProjectHandler) Create(ctx context.Context, req *proto.CreateRequest, rsp *proto.CreateResponse) error
- func (h *ProjectHandler) List(ctx context.Context, req *proto.ListRequest, rsp *proto.ListResponse) error
- func (h *ProjectHandler) Read(ctx context.Context, req *proto.ReadRequest, rsp *proto.ReadResponse) error
- func (h *ProjectHandler) Update(ctx context.Context, req *proto.UpdateRequest, rsp *proto.UpdateResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectHandler ¶
type ProjectHandler struct {
Repository model.IProjectRepository `inject:""`
}
ProjectHandler is a CRUD handler for project (with out delete)
func (*ProjectHandler) Create ¶
func (h *ProjectHandler) Create(ctx context.Context, req *proto.CreateRequest, rsp *proto.CreateResponse) error
Create new project
func (*ProjectHandler) List ¶
func (h *ProjectHandler) List(ctx context.Context, req *proto.ListRequest, rsp *proto.ListResponse) error
List all elements
func (*ProjectHandler) Read ¶
func (h *ProjectHandler) Read(ctx context.Context, req *proto.ReadRequest, rsp *proto.ReadResponse) error
Read project by id
func (*ProjectHandler) Update ¶
func (h *ProjectHandler) Update(ctx context.Context, req *proto.UpdateRequest, rsp *proto.UpdateResponse) error
Update projects
Click to show internal directories.
Click to hide internal directories.