store

package
v0.0.0-...-78a7608 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: AGPL-3.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 Event

type Event struct {
	ID        int64     `json:"id"`
	Type      string    `json:"type"`
	Data      string    `json:"data"`
	CreatedAt time.Time `json:"created_at"`
}

type UserStore

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

func NewUserStore

func NewUserStore(basePath string, userID string) (*UserStore, error)

func (*UserStore) Close

func (s *UserStore) Close() error

func (*UserStore) GetEvents

func (s *UserStore) GetEvents(eventType string) ([]Event, error)

func (*UserStore) StoreEvent

func (s *UserStore) StoreEvent(eventType, data string) (*Event, error)

Jump to

Keyboard shortcuts

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