api

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Chakib Ben Ziane <contact@blob42.xyz> and [`gosuki` contributors](https://github.com/blob42/gosuki/graphs/contributors). All rights reserved.

SPDX-License-Identifier: AGPL-3.0-or-later

This file is part of GoSuki.

GoSuki is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GoSuki is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with gosuki. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIBookmarks

func GetAPIBookmarks(w http.ResponseWriter, r *http.Request)

func GetBookmarks

func GetBookmarks(r *http.Request) ([]*gosuki.Bookmark, uint, error)

func GetPaginationParams

func GetPaginationParams(r *http.Request) *db.PaginationParams

func IsFuzzy

func IsFuzzy(r *http.Request) bool

Types

type Bookmark

type Bookmark = gosuki.Bookmark

type Payload

type Payload struct {
	Total   uint `json:"total"`
	Page    int  `json:"page"`
	PerPage int  `json:"per_page"`
	Result  any  `json:"result"`
}

type RawBookmark

type RawBookmark = db.RawBookmark

type ReqIsFuzzy

type ReqIsFuzzy struct{}

type ResetPage

type ResetPage struct{}

Jump to

Keyboard shortcuts

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