tram

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

README

tram

The tram package provides tools to display tramway schedules (for Clermont-Ferrand).

tram-logo

Installation

$> go install codeberg.org/sbinet/tram/cmd/tram-srv@latest
$> tram-srv -addr ":8080"

Documentation

Documentation for tram is served by GoDoc.

License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Station   string
	Direction string

	Schedules []Schedule
}

type Schedule

type Schedule struct {
	Time  time.Time
	Delay time.Duration
	Delta time.Duration
}

type Server

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

func New

func New(base string) (*Server, error)

func (*Server) ServeHTTP

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

Directories

Path Synopsis
cmd
tram-srv command
Command tram-srv runs a tram schedules server.
Command tram-srv runs a tram schedules server.
internal
assets
Package assets provides embedded resources.
Package assets provides embedded resources.

Jump to

Keyboard shortcuts

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