gofiche

package module
v0.0.0-...-5b49334 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(settings *GoficheSettings)

Serve starts the gofiche server and listens for incoming connections on the specified port

Types

type CounterHandler

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

Each time the URL is visited, a counter is incremented and the value is returned.

func (*CounterHandler) Increment

func (ct *CounterHandler) Increment()

Increment increases the counter

type GoficheSettings

type GoficheSettings struct {
	ListenAddr string
	Port       int
	Slug       Slug
	Domain     string
	BufferSize int
	UserName   string
	LogFile    string
	OutDir     string
}

type Slug

type Slug struct {
	Length int
	Slug   string
}

func (*Slug) Generate

func (s *Slug) Generate()

Generates a random slug

Jump to

Keyboard shortcuts

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