handler

package
v0.0.0-...-93f29c8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler imlements the notes proto definition

func NewHandler

func NewHandler(client client.Client) *Handler

NewHandler returns an initialized Handler

func (*Handler) CreateNote

func (h *Handler) CreateNote(ctx context.Context, req *pb.CreateNoteRequest, rsp *pb.CreateNoteResponse) error

CreateNote creates a new note in the notes service

func (*Handler) DeleteNote

func (h *Handler) DeleteNote(ctx context.Context, req *pb.DeleteNoteRequest, rsp *pb.DeleteNoteResponse) error

DeleteNote note deleted a note in the notes service

func (*Handler) ListNotes

func (h *Handler) ListNotes(ctx context.Context, req *pb.ListNotesRequest, rsp *pb.ListNotesResponse) error

ListNotes returns all the notes from the notes service

func (*Handler) UpdateNote

func (h *Handler) UpdateNote(ctx context.Context, req *pb.UpdateNoteRequest, rsp *pb.UpdateNoteResponse) error

UpdateNote streams updates to the notes service

Jump to

Keyboard shortcuts

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