schedule

package
v0.0.0-...-adc3182 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Service *Service
}

func (Handler) Schedule

func (h Handler) Schedule(ctx echo.Context) error

Schedule @Description Get user schedule @Accept json @Produce json @Security Bearer @Success 200 {object} common.CareerSchedule "Successfully retrieved schedule" @Failure 400 {string} string "Error getting schedule." @Router /schedule [get]

func (Handler) Start

func (h Handler) Start(app *echo.Echo, authService *auth.Service, storage ...persistence.CacheStore)

type Provider

type Provider interface {
	Schedule(ctx echo.Context) error
}

type Service

type Service struct {
	Config   *config.Config
	Database *database.Database
	Duoc     *duoc.Client
}

func New

func New(cfg *config.Config, db *database.Database, duoc *duoc.Client) *Service

func (Service) Schedule

func (s Service) Schedule(usr common.User) ([]common.CareerSchedule, error)

Jump to

Keyboard shortcuts

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