handler

package
v0.0.0-...-6b278c6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseError

func ResponseError(w http.ResponseWriter, code int, message string)

Types

type Service

type Service struct {
	Client *mongo.Client
	Whole  *mongo.Collection
	Jma    *mongo.Collection
}

func (*Service) IndexHandler

func (s *Service) IndexHandler(w http.ResponseWriter, r *http.Request)

func (*Service) ItemHandler

func (s *Service) ItemHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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