Documentation ¶
Index ¶
- type Comments
- func (h *Comments) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error
- func (h *Comments) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
- func (h *Comments) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, ...) error
- func (h *Comments) Events(ctx context.Context, req *pb.EventsRequest, stream pb.Comments_EventsStream) error
- func (h *Comments) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
- func (h *Comments) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error
- func (h *Comments) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error
- func (h *Comments) Usage(ctx context.Context, request *adminpb.UsageRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comments ¶
Comments implements the comments proto definition
func (*Comments) Create ¶
func (h *Comments) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error
Create inserts a new comment in the store
func (*Comments) Delete ¶
func (h *Comments) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
Delete removes the comment from the store, looking up using ID
func (*Comments) DeleteData ¶
func (h *Comments) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error
func (*Comments) Events ¶
func (h *Comments) Events(ctx context.Context, req *pb.EventsRequest, stream pb.Comments_EventsStream) error
func (*Comments) List ¶
func (h *Comments) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
Comment returns all of the comments in the store
func (*Comments) Read ¶
func (h *Comments) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error
func (*Comments) Update ¶
func (h *Comments) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error
Update is a unary API which updates a comment in the store
func (*Comments) Usage ¶
func (h *Comments) Usage(ctx context.Context, request *adminpb.UsageRequest, response *adminpb.UsageResponse) error
Click to show internal directories.
Click to hide internal directories.