Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetICS ¶
func GetICS(store Store, service Service) gin.HandlerFunc
Download pbehavior ICS by id @Summary Get pbehavior ICS by id @Description Get pbehavior ICS by id @Tags pbehavior-ics @ID pbehavior-ics-get-by-id @Produce octet-stream @Security ApiKeyAuth @Security BasicAuth @Param id path string true "pbehavior id" @Success 200 @Failure 404 {object} common.ErrorResponse @Router /pbehavior-ics/{id} [get]
Types ¶
type Service ¶
type Service interface { // GenICSFrom creates ICS calendar from pbehavior. GenICSFrom(pbh pbehaviorapi.PBehavior, maxPriority, minPriority int64) (ics.Calendar, error) }
Service is used to implement ICS calendar generation.
func NewService ¶
func NewService(timezoneConfigProvider config.TimezoneConfigProvider) Service
NewService creates new service.
Click to show internal directories.
Click to hide internal directories.