repository

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUserCronJobIds

func DeleteUserCronJobIds(pluginAPI plugin.API, userId string)

func GetCalendarHomeSet

func GetCalendarHomeSet(pluginAPI plugin.API, userId string) string

func GetEvents

func GetEvents(pluginAPI plugin.API, userId string) []dto.Event

func GetSettings

func GetSettings(pluginAPI plugin.API, userId string) *dto.Settings

func GetState

func GetState(pluginAPI plugin.API, userId string) *dto.State

func GetUserCalendarLastUpdate

func GetUserCalendarLastUpdate(pluginAPI plugin.API, userId string) *time.Time

func GetUserCronJobIds

func GetUserCronJobIds(pluginAPI plugin.API, userId string) (*int, *int)

func SaveCalendarHomeSet

func SaveCalendarHomeSet(pluginAPI plugin.API, userId string, calendarHomeSet string)

func SaveEventCronJob

func SaveEventCronJob(pluginAPI plugin.API, userId string, eventCronJonId int)

func SaveEvents

func SaveEvents(pluginAPI plugin.API, userId string, events []dto.Event)

func SaveLastUpdate

func SaveLastUpdate(pluginAPI plugin.API, userId string, lastUpdate time.Time)

func SaveSettings

func SaveSettings(pluginAPI plugin.API, userId string, settings dto.Settings)

func SaveState

func SaveState(pluginAPI plugin.API, userId string, state dto.State)

func SaveUpdateCronJob

func SaveUpdateCronJob(pluginAPI plugin.API, userId string, updateCronJonId int)

Types

type CredentialsRepo

type CredentialsRepo struct {
	// contains filtered or unexported fields
}

func NewCredentialsRepo

func NewCredentialsRepo(logger *util.Logger, plugin plugin.API) *CredentialsRepo

func (*CredentialsRepo) GetCredentials

func (cr *CredentialsRepo) GetCredentials(userId string) *dto.Credentials

func (*CredentialsRepo) SaveCredentials

func (cr *CredentialsRepo) SaveCredentials(userId string, credentials dto.Credentials)

type WorkspaceRepo

type WorkspaceRepo struct {
	// contains filtered or unexported fields
}

func NewWorkspaceRepo

func NewWorkspaceRepo(logger *util.Logger, plugin plugin.API) *WorkspaceRepo

func (*WorkspaceRepo) DeleteUser

func (wr *WorkspaceRepo) DeleteUser(userId string)

func (*WorkspaceRepo) GetUserIds

func (wr *WorkspaceRepo) GetUserIds() *map[string]bool

func (*WorkspaceRepo) SaveUserIds

func (wr *WorkspaceRepo) SaveUserIds(userIds map[string]bool)

Jump to

Keyboard shortcuts

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