handler

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoLinkService

func NewGoLinkService(router *chi.Mux, cfg *config.Config)

NewGoLinkService returns a reference to a new instance of a GolinkHandler

Types

type ApiHandler

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

func NewApiHandler

func NewApiHandler(linkMap *links.LinkMap) *ApiHandler

type ContentName

type ContentName int
const (
	INDEX ContentName = iota
	NEW
	STYLES
	FAVICON
)

type FrontendHandler added in v1.0.2

type FrontendHandler struct{}

func NewFrontendHandler added in v1.0.2

func NewFrontendHandler() *FrontendHandler

type GolinkHandler

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

GolinkHandler handles all incoming/outgoing http requests for go links.

Jump to

Keyboard shortcuts

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