skapi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Overview

Package skapi provides a sako server API, compatible with Wallabag's API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(repo skdb.Repository) (*Server, error)

func (*Server) Close

func (srv *Server) Close() (err error)

func (*Server) ReloadOauthClients

func (srv *Server) ReloadOauthClients(ctx context.Context) error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Token

type Token struct {
	User      string
	UserEmail string
	UserID    sako.UserID
	Expires   time.Time
	Token     walla.Token
}

Jump to

Keyboard shortcuts

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