magnetar

package module
v0.0.0-...-bfb77d9 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 10 Imported by: 0

README

magnetar

A front end

Created for the sake of learning (and memes)

You may also visit cosban.net which will always be running the latest version of magnetar.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Name() string
	Fillers() map[string]page.Filler
	Posters() map[string]form.Poster
}

type Magnetar

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

Magnetar controls the HTTP routing and page templates.

func New

func New() *Magnetar

New creates a new Magnetar instance

func (*Magnetar) Start

func (m *Magnetar) Start() error

Start finalizes the routes which have been registered while also registering any routes used by controllers to perform page loads. Once this is done, it begins listening for connections.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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