jphotos

package module
v0.0.0-...-9a0b025 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

README

builds.sr.ht status

jphotos

jphotos is a simple HTTP server for photo albums.

Features

  • No "social media" features
  • No JavaScript!
  • Blazingly fast

Getting Started

Read our Getting Started guide.

Interested in developing? Get started with our developer documentation.

Resources

Comprehensive documentation can be found here.

Discussion and patches are welcome to my public inbox: ~mjorgensen/public-inbox@lists.sr.ht. Please use --subject prefix PATCH jphotos for clarity when sending patches.

Bugs, issues, planning, and tasks can all be found at the tracker: ~mjorgensen/jphotos.

Screenshots

As you can see, this project is still very much a work in progress!

Homepage/Albums Index albums index

Album View album view

Single Photo View single photo view

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlbumsEndpoint = "/albums"
)

Functions

This section is empty.

Types

type Server

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

A Server handles routing and dependency injection into the routes.

func NewServer

func NewServer(db db.Store, config app.Configuration) *Server

NewServer creates a Server backed by a backing database

func (*Server) ServeHTTP

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

Directories

Path Synopsis
cmd
Package db defines the requirements for our database, via the Store interface, and implements it for postgres.
Package db defines the requirements for our database, via the Store interface, and implements it for postgres.

Jump to

Keyboard shortcuts

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