front

package
v2.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 16 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            *pubsub.Subscriber
	SSE            *sse.Event
	SiteActions    *SiteActions
	ArticleActions *ArticleActions
}

func (*Front) Listen

func (front *Front) Listen(ctx context.Context) error

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