storage

package
v0.0.0-...-7c85a9a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgReminder

type PgReminder struct {
	Name      string `gorm:"primaryKey"`
	GrainId   string `gorm:"primaryKey"`
	GrainType string `gorm:"primaryKey"`
	Data      []byte
	Period    int64
	FireAt    int64
	Method    string
}

func (PgReminder) TableName

func (p PgReminder) TableName() string

type PostgresqlReminderStore

type PostgresqlReminderStore struct {
	ReminderStore
	// contains filtered or unexported fields
}

func NewPostgresqlReminderStore

func NewPostgresqlReminderStore(dsn string) (*PostgresqlReminderStore, error)

func (*PostgresqlReminderStore) GetReminders

func (s *PostgresqlReminderStore) GetReminders() ([]*data.Reminder, error)

func (*PostgresqlReminderStore) StoreReminder

func (s *PostgresqlReminderStore) StoreReminder(reminder *data.Reminder) error

type ReminderStore

type ReminderStore interface {
	GetReminders() ([]*data.Reminder, error)
	StoreReminder(reminder *data.Reminder) error
}

Jump to

Keyboard shortcuts

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