tweetsstorage

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Save(ctx context.Context, tweet *common.Tweet) error
	GetPopularAndOlderThen(ctx context.Context, time time.Time) (*common.Tweet, error)
	Delete(ctx context.Context, id string) error
}

func NewStorage

func NewStorage() Storage

type Tweet

type Tweet struct {
	*common.Tweet
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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