Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnauthorized = errors.New("unauthorized access to dashboard") )
Functions ¶
This section is empty.
Types ¶
type RecentItem ¶
type RecentItem struct {
ID int `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Status string `json:"status"`
CreatedAt time.Time `json:"createdAt"`
}
RecentItem represents a recent content item in the dashboard
type Repository ¶
Repository defines the interface for dashboard repository operations
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo Repository) *Service
type Stats ¶
type Stats struct {
PublishedPosts int `json:"publishedPosts"`
DraftPosts int `json:"draftPosts"`
RegisteredUsers int `json:"registeredUsers"`
PendingRegistrations int `json:"pendingRegistrations"`
MediaItems int `json:"mediaItems"`
RecentContent []*RecentItem `json:"recentContent,omitempty"`
}
Stats represents dashboard statistics
Click to show internal directories.
Click to hide internal directories.