controller

package
v0.0.0-...-bc49051 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_HOME_FEED_LENGTH = 50
View Source
const DEFAULT_NOTIFICATIONS_FEED_LENGTH = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	apputil.BaseController
	Config config.Config
	Model  model.Manager
}

API is the basic api controller.

It handles things like getting the session and basically that's it.

func (API) Register

func (a API) Register(app *web.App)

Register adds the controller routes to the app.

type Chirp

type Chirp struct {
	apputil.BaseController
	Config config.Config
	Model  model.Manager
}

func (Chirp) Register

func (c Chirp) Register(app *web.App)

type Home

type Home struct {
	apputil.BaseController

	Config config.Config
	Model  model.Manager
}

func (Home) Register

func (h Home) Register(app *web.App)

type Index

type Index struct {
	apputil.BaseController
	Model  model.Manager
	Config config.Config

	NextProxyURL string
}

func (Index) Register

func (i Index) Register(app *web.App)

type Notifications

type Notifications struct {
	apputil.BaseController

	Config config.Config
	Model  model.Manager
}

func (Notifications) Register

func (n Notifications) Register(app *web.App)

type Profile

type Profile struct {
	apputil.BaseController

	Config config.Config
	Model  model.Manager
}

func (Profile) Register

func (p Profile) Register(app *web.App)
type Search struct {
	apputil.BaseController

	Config config.Config
	Model  model.Manager
}

func (Search) Register

func (s Search) Register(app *web.App)

type SearchViewModel

type SearchViewModel struct {
	Query string
	Users []model.UserFull
}

type Smurf

type Smurf struct {
	apputil.BaseController

	Config config.Config
	Model  model.Manager
}

Smurf is a controller that lets admins create or log into "smurf" accounts that are used for testing.

func (Smurf) Register

func (s Smurf) Register(app *web.App)

Register registers the controller with the app.

type Static

type Static struct {
	apputil.BaseController

	NextProxyURL string
}

func (Static) Register

func (s Static) Register(app *web.App)

type Status

type Status struct {
	apputil.BaseController
	Model  model.Manager
	Config config.Config
}

func (Status) Register

func (s Status) Register(app *web.App)

Jump to

Keyboard shortcuts

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