handler

package
v0.0.0-...-6452c0a Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Router(http.ResponseWriter, *http.Request)
	// contains filtered or unexported methods
}

func NewHandler

func NewHandler(db *sqlx.DB, logger *log.Logger) Handler

type Planet

type Planet struct {
	Logger  *log.Logger
	Service service.Service
}

func (Planet) Router

func (h Planet) Router(w http.ResponseWriter, r *http.Request)

type Response

type Response struct {
	Message string `json:"message"`
}

func (Response) String

func (r Response) String() string

Jump to

Keyboard shortcuts

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