router

package
v0.0.0-...-939b314 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(opts ...Option) *chi.Mux

Types

type Option

type Option func(*Router)

func WithDataDir

func WithDataDir(dataDir string) Option

func WithFrontend

func WithFrontend(frontendFS embed.FS) Option

func WithGraphql

func WithGraphql(graphql *handler.Server) Option
func WithReolinks(c []*reolink.Client) Option

type Router

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

Jump to

Keyboard shortcuts

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