bookmarks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LAST_UPDATED_FORMAT string = "2006-01-02T15:04:05.000Z"

Variables

This section is empty.

Functions

func Register

func Register(
	xbsctx *lib.XBSContext,
	fiberRouter *fiber.Router,
)

Types

type BookmarkCreateModel

type BookmarkCreateModel struct {
	Version string `json:"version" validate:"required"`
}

type BookmarkCreateResponse

type BookmarkCreateResponse struct {
	Success  bool               `json:"success"`
	Bookmark *BookmarkShowModel `json:"bookmark"`
	Message  string             `json:"message"`
}

type BookmarkShowModel

type BookmarkShowModel struct {
	ID          string `json:"id,omitempty"`
	Bookmarks   string `json:"bookmarks,omitempty"`
	LastUpdated string `json:"lastUpdated,omitempty"`
	Version     string `json:"version,omitempty"`
}

type BookmarkShowResponse

type BookmarkShowResponse struct {
	Success  bool               `json:"success"`
	Bookmark *BookmarkShowModel `json:"bookmark"`
	Message  string             `json:"message"`
}

type BookmarkUpdateModel

type BookmarkUpdateModel struct {
	Bookmarks   string `json:"bookmarks" validate:"required"`
	LastUpdated string `json:"lastUpdated" validate:"required"`
}

type BookmarkUpdateResponse

type BookmarkUpdateResponse struct {
	Success  bool               `json:"success"`
	Bookmark *BookmarkShowModel `json:"bookmark"`
	Message  string             `json:"message"`
}

Jump to

Keyboard shortcuts

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