server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 20 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 {
	Cfg   internal.Config
	Clk   internal.Clock
	Event *live.Service
	Repo  *db.Repository
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg internal.Config, repo *db.Repository) *Server

func (*Server) Done

func (srv *Server) Done() <-chan struct{}

func (*Server) GET

func (srv *Server) GET(path string, hdl echo.HandlerFunc)

func (*Server) PATCH

func (srv *Server) PATCH(path string, hdl echo.HandlerFunc)

func (*Server) POST

func (srv *Server) POST(path string, hdl echo.HandlerFunc)

func (*Server) PUT

func (srv *Server) PUT(path string, hdl echo.HandlerFunc)

func (*Server) Renderer

func (srv *Server) Renderer() echo.Renderer

func (*Server) Run

func (srv *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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