Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure Eagle #25

Closed
hacdias opened this issue Oct 27, 2021 · 0 comments
Closed

Restructure Eagle #25

hacdias opened this issue Oct 27, 2021 · 0 comments

Comments

@hacdias
Copy link
Owner

hacdias commented Oct 27, 2021

Current Status: https://pkg.go.dev/github.com/hacdias/[email protected]/eagle


What I want to see (WIP):

type Eagle
	func NewEagle(conf *config.Config) (*Eagle, error)

	func (e *Eagle) DeleteEntry(entry *Entry) error
	func (e *Eagle) GetAllEntries() ([]*Entry, error)
	func (e *Eagle) GetEntry(id string) (*Entry, error)
	func (e *Eagle) MakeBundle(entry *Entry) error
	func (e *Eagle) ParseEntry(id, data string) (*Entry, error)
	func (e *Eagle) SaveEntry(entry *Entry) error

	func (e *Eagle) Search(query *SearchQuery) ([]*SearchEntry, error)
	func (e *Eagle) RebuildIndex() error

	func (e *Eagle) HandleWebmentions(webmention *Webmention) error
	func (e *Eagle) SendWebmentions(entry *Entry) error

	func (e *Eagle) Build(clean bool) error
	func (e *Eagle) ShouldBuild() (bool, error) // maybe make this verification on NewEagle and hide this

	Twitter     *Twitter
	Miniflux    *Miniflux

Notifications: mostly used in Server. Can move completely to Server.

type Notifications interface {
	Notify(msg string)
	NotifyError(err error)
}

Some of this things would probably come organically if tried to implement #16 #23 #24

@hacdias hacdias closed this as completed Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant