controller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionController

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

SessionController coordinates authenticated session state in the user menu.

func NewSessionController

func NewSessionController(auth *auth.Auth) *SessionController

NewSessionController creates a controller for session refresh and logout actions.

func (*SessionController) Bind

func (controller *SessionController) Bind(view *view.UserMenuView) *SessionController

Bind wires the controller to the user menu view and loads the current session.

type ThemeController

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

ThemeController coordinates theme selection and applies the selected Carbon theme.

func NewThemeController

func NewThemeController(theme carbon.Attr) *ThemeController

NewThemeController creates a controller with the given initial theme.

func (*ThemeController) Bind

func (controller *ThemeController) Bind(view *view.ThemeMenuView) *ThemeController

Bind wires the theme selector menu to document theme application.

func (*ThemeController) SetTheme

func (controller *ThemeController) SetTheme(theme carbon.Attr)

SetTheme updates the selected theme in the menu and applies it to the document body.

type UserController

type UserController struct {
	*provider.UserProvider
	Users schema.UserList
	Err   error
	// contains filtered or unexported fields
}

UserController coordinates user resource operations for the frontend.

func NewUserController

func NewUserController(base *url.URL) *UserController

NewUserController creates a user controller with an attached user provider.

func (*UserController) Bind

func (controller *UserController) Bind(list userListView, panel userPanelView) *UserController

Bind registers the controller to fetch users whenever the bound list view is activated by the router, and coordinates open/close behavior with the user panel view.

Jump to

Keyboard shortcuts

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