store

package
v0.0.0-...-bb0d5b7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	ID        string    `db:"id" json:"id"`
	Label     string    `db:"label" json:"label"`
	Message   string    `db:"message" json:"message"`
	Color     string    `db:"color" json:"color"`
	Badge     string    `db:"badge" json:"badge"`
	ETag      string    `db:"etag" json:"etag"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
}

type Store

type Store interface {
	Get(ctx context.Context, id string) (*Badge, error)
	Set(ctx context.Context, badge *Badge) error
}

func NewCacheStore

func NewCacheStore(store Store) Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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