app

package
v0.0.0-...-44db4d7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageResponse

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

MessageResponse is the shape of the json we return when a user fetches a message.

type Server

type Server struct {
	Db  *db.Db
	Mux *chi.Mux
	// contains filtered or unexported fields
}

Server is the structure that holds all the resources and context for the API.

func NewServer

func NewServer(db *db.Db) *Server

NewServer creates and hydrates an *App structure for use.

Jump to

Keyboard shortcuts

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