notes

package
v0.0.0-...-f388f23 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePageToken

func DecodePageToken(token string) int

func EncodePageToken

func EncodePageToken(id int) string

Types

type GRPCService

type GRPCService struct {
	pb.UnimplementedNoteServiceServer
	// contains filtered or unexported fields
}

func NewNotesGRPCService

func NewNotesGRPCService(db *sql.DB) *GRPCService

func (*GRPCService) CreateNote

func (c *GRPCService) CreateNote(ctx context.Context, req *pb.CreateNoteRequest) (*pb.Note, error)

func (*GRPCService) DeleteNote

func (c *GRPCService) DeleteNote(ctx context.Context, req *pb.DeleteNoteRequest) (*emptypb.Empty, error)

func (*GRPCService) GetNote

func (c *GRPCService) GetNote(ctx context.Context, req *pb.GetNoteRequest) (*pb.Note, error)

func (*GRPCService) ListNotes

func (*GRPCService) UpdateNote

func (c *GRPCService) UpdateNote(ctx context.Context, req *pb.UpdateNoteRequest) (*pb.Note, error)

Jump to

Keyboard shortcuts

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