Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CreateNote(ctx context.Context, req *pb.CreateNoteRequest, rsp *pb.CreateNoteResponse) error
- func (h *Handler) DeleteNote(ctx context.Context, req *pb.DeleteNoteRequest, rsp *pb.DeleteNoteResponse) error
- func (h *Handler) ListNotes(ctx context.Context, req *pb.ListNotesRequest, rsp *pb.ListNotesResponse) error
- func (h *Handler) UpdateNote(ctx context.Context, req *pb.UpdateNoteRequest, rsp *pb.UpdateNoteResponse) error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.