pg

package
v0.0.0-...-eb5c5f3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDb

func MigrateDb(postgresURI string) error

Types

type Message

type Message []byte

type Storage

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

func NewStorage

func NewStorage(postgresURI string) (*Storage, error)

func (*Storage) Add

func (s *Storage) Add(ctx context.Context, key string, ttl int64, mes datatype.SseMessage) error

func (*Storage) GetMessages

func (s *Storage) GetMessages(ctx context.Context, keys []string, lastEventId int64) ([]datatype.SseMessage, error)

Jump to

Keyboard shortcuts

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