Documentation ¶
Overview ¶
Package store contains entities and services to process and contain them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is an error that is returned when the requested entity is not found.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { URL string `json:"url"` Title string `json:"title"` Excerpt string `json:"excerpt"` Content string `json:"content"` Author string `json:"author"` ImageURL string `json:"image_url"` BulletPoints string `json:"bullet_points"` }
Article is a struct that contains the extracted article.
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
Bolt is a storage that uses BoltDB as a backend.
type Interface ¶
type Interface interface { Put(ctx context.Context, u User) error Get(ctx context.Context, chatID string) (User, error) List(ctx context.Context, req ListRequest) ([]User, error) Delete(ctx context.Context, chatID string) error }
Interface defines methods for store
type ListRequest ¶
type ListRequest struct{}
ListRequest defines parameters for listing users from store.
Click to show internal directories.
Click to hide internal directories.