front

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleActions

type ArticleActions struct {
	ArticleRepo repository.ReadRepository[*entity.Article]
	SiteRepo    repository.ReadRepository[*entity.Site]
}

func (*ArticleActions) List

func (a *ArticleActions) List(c wool.Ctx) error

type Front

type Front struct {
	Logger         *slog.Logger
	Sub            common.Sub
	SSE            *sse.Event
	SiteActions    *SiteActions
	ArticleActions *ArticleActions
	DirUI          string
}

func (*Front) Listen

func (front *Front) Listen(done <-chan struct{})

func (*Front) Register

func (front *Front) Register(mux *wool.Wool)

type Site

type Site struct {
	ID        uuid.UUID `json:"id,omitempty"`
	Domain    string    `json:"domain,omitempty"`
	Favicon   string    `json:"favicon,omitempty"`
	Languages []string  `json:"languages,omitempty"`
	Title     string    `json:"title,omitempty"`
}

type SiteActions

type SiteActions struct {
	SiteRepo repository.ReadRepository[*entity.Site]
}

func (*SiteActions) List

func (a *SiteActions) List(c wool.Ctx) error

Jump to

Keyboard shortcuts

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