server

package
v0.0.0-...-c688a7a Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an HTTP server.

func New

func New(ctx context.Context, db database.Database) *Server

New is a new server.

func (*Server) HandleCreateUsers

func (s *Server) HandleCreateUsers(w http.ResponseWriter, r *http.Request)

HandleCreateUsers handles the path "/users/create". Create -> Post/Put.

func (*Server) HandleIndex

func (s *Server) HandleIndex(w http.ResponseWriter, r *http.Request)

HandleIndex handles the index path "/".

func (*Server) HandleUsers

func (s *Server) HandleUsers(w http.ResponseWriter, r *http.Request)

HandleUsers handles the `/users/{name}` request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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