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 Notes

type Notes struct {
	Stream streamPb.MqService
}

Notes implements the notes proto definition

func New

func New(c client.Client) *Notes

New returns an initialized Notes

func (*Notes) Create

func (h *Notes) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error

Create inserts a new note in the store

func (*Notes) Delete

func (h *Notes) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error

Delete removes the note from the store, looking up using ID

func (*Notes) DeleteData

func (h *Notes) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error

func (*Notes) Events

func (h *Notes) Events(ctx context.Context, req *pb.EventsRequest, stream pb.Notes_EventsStream) error

func (*Notes) List

func (h *Notes) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error

List returns all of the notes in the store

func (*Notes) Read

func (h *Notes) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error

func (*Notes) Update

func (h *Notes) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error

Update is a unary API which updates a note in the store

func (*Notes) Usage

func (h *Notes) 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