server

package
v0.0.0-...-5e8e33e Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Cache     cache.Cache
	DbService *persistence.DbService

	ScheduleRepository schedule_repository_contract.Repository

	CreateScheduleUseCase  create_schedule_contract.UseCase
	ListSchedulesUseCase   list_schedules_contract.UseCase
	GetScheduleByIdUseCase get_schedule_by_id_contract.UseCase
	UpdateScheduleUseCase  update_schedule_contract.UseCase
	DeleteScheduleUseCase  delete_schedule_contract.UseCase
}

type Server

type Server struct {
	Config *config.Config

	Dependencies
}

func NewServer

func NewServer(ctx context.Context, config *config.Config) (*Server, error)

func (*Server) GetServer

func (s *Server) GetServer() *http.Server

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes() http.Handler

Jump to

Keyboard shortcuts

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