presentation

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package presentation provides the presentation layer components and their dependency injection setup.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("presentation",

	fx.Provide(
		fx.Annotate(
			NewRenderer,
			fx.As(new(view.Renderer)),
		),
	),
)

Module provides all presentation layer dependencies

Functions

func NewRenderer

func NewRenderer(deps Dependencies) (view.Renderer, error)

NewRenderer creates a new view renderer

Types

type Dependencies

type Dependencies struct {
	fx.In

	// Infrastructure
	Logger logging.Logger
	Config *config.Config
}

Dependencies contains all presentation layer dependencies

func (*Dependencies) Validate

func (d *Dependencies) Validate() error

Validate checks if all required dependencies are present

Directories

Path Synopsis
templates
pages
Package pages provides page-level template components.
Package pages provides page-level template components.
shared
Package shared provides common utilities and helper functions for use across template components and presentation layer.
Package shared provides common utilities and helper functions for use across template components and presentation layer.
Package view provides types and utilities for rendering page data and templates.
Package view provides types and utilities for rendering page data and templates.

Jump to

Keyboard shortcuts

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