rest

package
v0.0.0-...-be9b8b1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

Handlers server handlers

func NewHandlers

NewHandlers create handlers.

func (*Handlers) Routes

func (s *Handlers) Routes() chi.Router

Routes chi http routs configuration

type Server

type Server struct {
	Routes chi.Router
	// contains filtered or unexported fields
}

Server app server

func NewServer

func NewServer(router chi.Router) *Server

NewServer create new server

func (*Server) Close

func (s *Server) Close(ctx context.Context) error

Close closes connection to the server

func (*Server) Run

func (s *Server) Run(port int) error

Run server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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