requests

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNoteRequest

type AddNoteRequest struct {
	Title string `json:"title"`
	Data  string `json:"data"`
}

AddNoteRequest represents the AddNoteHandlers request body structure

type AuthRequest

type AuthRequest struct {
	Email string `json:"email" bson:"email"`
	UID   string `json:"uid" bson:"uid"`
}

AuthRequest struct represents the POST method's request body structure

type EditNoteRequest

type EditNoteRequest struct {
	ID       string `json:"_id" bson:"_id"`
	Title    string `json:"title,omitempty" bson:"title,omitempty"`
	Data     string `json:"data,omitempty" bson:"data,omitempty"`
	IsPinned bool   `json:"ispinned,omitempty" bson:"ispinned,omitempty"`
	Label    string `json:"label,omitempty" bson:"label,omitempty"`
	Color    string `json:"color,omitempty" bson:"color, omitempty"`
}

EditNoteRequest represents expected request body on editnote request

Jump to

Keyboard shortcuts

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