controllers

package
v0.0.0-...-b5ea2e0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

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

type Contact

type Contact struct {
	Base
}

Contact ctrl

func NewContact

func NewContact(
	config config.Config,
	session sessions.Store,
) *Contact

NewContact ctrl

func (*Contact) Handler

func (ctrl *Contact) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /Contact

type Donate struct {
	Base
}

Donate ctrl

func NewDonate

func NewDonate(
	config config.Config,
	session sessions.Store,
) *Donate

NewDonate ctrl

func (*Donate) Handler

func (ctrl *Donate) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /donate

type Index

type Index struct {
	Base
	// contains filtered or unexported fields
}

Index ctrl

func NewIndex

func NewIndex(
	config config.Config,
	session sessions.Store,
	store datastore.Datastore,
) *Index

NewIndex ctrl

func (*Index) Handler

func (ctrl *Index) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /

type Login

type Login struct {
	Base
	// contains filtered or unexported fields
}

Login ctrl

func NewLogin

func NewLogin(
	config config.Config,
	session sessions.Store,
	oauth *oauth.Oauth,
	store datastore.Datastore,
) *Login

NewLogin ctrl

func (*Login) CallbackHandler

func (ctrl *Login) CallbackHandler(w http.ResponseWriter, r *http.Request)

CallbackHandler handles /login/callback.

TODO: refactor this. nolint: funlen

func (*Login) Handler

func (ctrl *Login) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /

type Logout

type Logout struct {
	Base
}

Logout ctrl

func NewLogout

func NewLogout(
	config config.Config,
	session sessions.Store,
) *Logout

NewLogout ctrl

func (*Logout) Handler

func (ctrl *Logout) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /

type Schedule

type Schedule struct {
	Base
	// contains filtered or unexported fields
}

Schedule ctrl

func NewSchedule

func NewSchedule(
	config config.Config,
	session sessions.Store,
	store datastore.Datastore,
) *Schedule

NewSchedule ctrl

func (*Schedule) Handler

func (ctrl *Schedule) Handler(w http.ResponseWriter, r *http.Request)

Handler handles /Schedule

Jump to

Keyboard shortcuts

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