rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rest

type Rest interface {
	Handler() *chi.Mux
	StartRest(context.Context, *sync.WaitGroup)
}

func NewRest

func NewRest(d *sql.DB, ferpService ferp.Ferp) Rest

type RestService

type RestService struct {
	RepositoryService *db.RepositoryService
	FerpService       ferp.Ferp
	Server            *http.Server
}

func (*RestService) Handler

func (rs *RestService) Handler() *chi.Mux

func (*RestService) StartRest

func (rs *RestService) StartRest(ctx context.Context, waitGroup *sync.WaitGroup)

Jump to

Keyboard shortcuts

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