uinavbarbus

package
v0.0.0-...-0d5229f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Business

type Business struct {
	// contains filtered or unexported fields
}

Business manages the set of APIs for view product access.

func NewBusiness

func NewBusiness(navbartempler NavbarTempler, profiletempler ProfileTempler, authbus *authbus.Business) *Business

NewBusiness constructs a vproduct business API for use.

func (*Business) Navbar

func (b *Business) Navbar(ctx context.Context, loginroute, logoutroute string, uuid uuid.UUID, logintarget string, logouttarget string) (templ.Component, error)

SearchPage .

type Component

type Component struct {
	Component templ.Component
	ID        string
}
type NavbarComponent struct {
	Profile Component
}
type NavbarTempler interface {
	Navbar(ctx context.Context, navbarstyl Navbarstyl, c NavbarComponent, id string, route string, authbtn string, authtarget string) templ.Component
}

Storer interface declares the behavior this package needs to persist and retrieve data.

type Navbarstyl struct {
	Background string
}

type ProfileTempler

type ProfileTempler interface {
	Profile(ctx context.Context, id string) templ.Component
}

Directories

Path Synopsis
templs
navbartempl
templ: version: v0.2.778
templ: version: v0.2.778
profiletempl
templ: version: v0.2.778
templ: version: v0.2.778

Jump to

Keyboard shortcuts

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