handler

package
v0.0.0-...-2af310e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comments

type Comments struct {
	Stream streamPb.MqService
}

Comments implements the comments proto definition

func New

func New(c client.Client) *Comments

New returns an initialized Comments

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

Jump to

Keyboard shortcuts

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