http

package
v0.0.0-...-99c871e Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(mux chi.Router, db noteGetter)

func Notes

func Notes(mux chi.Router, db noteGetSaver)

func Static

func Static(mux chi.Router)

func VersionedAssets

func VersionedAssets(next http.Handler) http.Handler

Types

type NewServerOptions

type NewServerOptions struct {
	DB  *sql.Database
	Log *snorkel.Logger
}

type NoteRequest

type NoteRequest struct {
	ID      model.ID
	Content string
}

type Server

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

func NewServer

func NewServer(opts NewServerOptions) *Server

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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