services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAllService

func DeleteAllService(c *gin.Context)

func DeleteService

func DeleteService(c *gin.Context)

func GenerateService

func GenerateService(c *gin.Context)

func GetNotesService

func GetNotesService(c *gin.Context)

func NewService

func NewService(c *gin.Context)

func NoteService

func NoteService(c *gin.Context)

func UpdateDestructive

func UpdateDestructive(c *gin.Context)

func UpdateNoteService

func UpdateNoteService(c *gin.Context)

func UpdateSettingsService

func UpdateSettingsService(c *gin.Context)

func WipeService

func WipeService(c *gin.Context)

Types

type DestructiveResponse

type DestructiveResponse struct {
	Destructive bool `json:"destructive"`
	Turns       int  `json:"turns"`
}

type GetNotesResponse

type GetNotesResponse struct {
	ID string `json:"id"`
}

type Note

type Note struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Observation string `json:"observation,omitempty"`
	Private     bool   `json:"private"`
	Text        string `json:"text"`
	CreatedAt   string `json:"createdAt"`
	Owner       string `json:"owner"`
	Password    string `json:"password"`
	Destructive bool   `json:"destructive"`
	Turns       int    `json:"turns"`
}

type UpdateNoteResponse

type UpdateNoteResponse struct {
	ID         string `json:"id"`
	Text       string `json:"text"`
	LastUpdate string `json:"lastUpdate"`
}

type UpdateSettingsResponse

type UpdateSettingsResponse struct {
	Name        string `json:"name" bson:"name"`
	Observation string `json:"observation" bson:"observation"`
	Private     bool   `json:"private" bson:"private"`
	Password    string `json:"password" bson:"password"`
}

type UserCreate

type UserCreate struct {
	ID        string `json:"id" bson:"id"`
	Token     string `json:"token" bson:"token"`
	CreatedAt int    `json:"createdAt" bson:"createdAt"`
}

Jump to

Keyboard shortcuts

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