note

package
v0.0.0-...-8c91fe2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, newN NewNote) error

Types

type Event

type Event struct {
	Type string `json:"type"`
	Data any    `json:"data"`
}

type NewNote

type NewNote struct {
	Title string `json:"title"`
	Text  string `json:"text"`
}

type Note

type Note struct {
	Id        uint64    `json:"id" example:"1"`
	Title     string    `json:"title" example:"my note"`
	Text      string    `json:"text" example:"my note text"`
	UpdatedAt time.Time `json:"updatedAt" example:"2006-01-02T15:04:05Z"`
	CreatedAt time.Time `json:"createdAt" example:"2006-01-02T15:04:05Z"`
}

func Find

func Find(ctx context.Context, id uint64) (Note, error)

Jump to

Keyboard shortcuts

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