pbehaviorics

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetICS

func GetICS(store Store, service Service) gin.HandlerFunc

Types

type Service

type Service interface {
	// GenICSFrom creates ICS calendar from pbehavior.
	GenICSFrom(pbh pbehaviorapi.Response, 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.

type Store

type Store interface {
	GetOneBy(ctx context.Context, id string) (*pbehaviorapi.Response, error)
	FindMaxPriority(ctx context.Context) (int64, error)
	FindMinPriority(ctx context.Context) (int64, error)
}

func NewStore

func NewStore(dbClient mongo.DbClient, authorProvider author.Provider) Store

Jump to

Keyboard shortcuts

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