server

package
v0.0.0-...-3635e6a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Overview

Package server implements the links.sh HTTP server.

Endpoints:

GET  /topics           list topic names
GET  /topics/{topic}   download topic file
PUT  /topics/{topic}   upload/replace topic file

All requests require: Authorization: Bearer <token>

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 New

func New(linksDir, token string) *Server

func (*Server) Handler

func (s *Server) Handler() http.Handler

Jump to

Keyboard shortcuts

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