controllers

package
v0.0.0-...-c470439 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexGalleriesRoute = "index_galleries"
	ShowGalleryRoute    = "show_gallery"
	EditGalleryRoute    = "edit_gallery"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EditGalleryForm

type EditGalleryForm NewGalleryForm

type Galleries

type Galleries struct {
	NewView   *views.View
	ShowView  *views.View
	EditView  *views.View
	IndexView *views.View
	// contains filtered or unexported fields
}

func (*Galleries) Create

func (g *Galleries) Create(w http.ResponseWriter, r *http.Request)

func (*Galleries) Delete

func (g *Galleries) Delete(w http.ResponseWriter, r *http.Request)

func (*Galleries) Edit

func (g *Galleries) Edit(w http.ResponseWriter, r *http.Request)

func (*Galleries) ImageDelete

func (g *Galleries) ImageDelete(w http.ResponseWriter, r *http.Request)

func (*Galleries) ImageUpload

func (g *Galleries) ImageUpload(w http.ResponseWriter, r *http.Request)
func (g *Galleries) ImageViaLink(w http.ResponseWriter, r *http.Request)

func (*Galleries) Index

func (g *Galleries) Index(w http.ResponseWriter, r *http.Request)

func (*Galleries) Show

func (g *Galleries) Show(w http.ResponseWriter, r *http.Request)

func (*Galleries) Update

func (g *Galleries) Update(w http.ResponseWriter, r *http.Request)

type LoginForm

type LoginForm struct {
	Email    string `schema:"email"`
	Password string `schema:"password"`
}

type NewGalleryForm

type NewGalleryForm struct {
	Title string `schema:"title"`
}

type OAuths

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

func NewOAuths

func NewOAuths(os models.OAuthService, configs map[string]*oauth2.Config) *OAuths

func (*OAuths) Callback

func (o *OAuths) Callback(w http.ResponseWriter, r *http.Request)

func (*OAuths) Connect

func (o *OAuths) Connect(w http.ResponseWriter, r *http.Request)

func (*OAuths) DropboxTest

func (o *OAuths) DropboxTest(w http.ResponseWriter, r *http.Request)

type ResetPasswordForm

type ResetPasswordForm struct {
	Email    string `schema:"email"`
	Token    string `schema:"token"`
	Password string `schema:"password"`
}

type SignupForm

type SignupForm struct {
	Name     string `schema:"name"`
	Email    string `schema:"email"`
	Password string `schema:"password"`
}

type Static

type Static struct {
	HomeView     *views.View
	ContactsView *views.View
	FAQView      *views.View
}

func NewStatic

func NewStatic() *Static

type Users

type Users struct {
	SignupView         *views.View
	LoginView          *views.View
	ForgotPasswordView *views.View
	ResetPasswordView  *views.View
	// contains filtered or unexported fields
}

func NewUsers

func NewUsers(us models.UserService) *Users

func (*Users) ForgotPassword

func (uc *Users) ForgotPassword(w http.ResponseWriter, r *http.Request)

func (*Users) GetResetPassword

func (uc *Users) GetResetPassword(w http.ResponseWriter, r *http.Request)

func (*Users) GetSignup

func (uc *Users) GetSignup(w http.ResponseWriter, r *http.Request)

func (*Users) Login

func (uc *Users) Login(w http.ResponseWriter, r *http.Request)

func (*Users) Logout

func (uc *Users) Logout(w http.ResponseWriter, r *http.Request)

func (*Users) PostResetPassword

func (uc *Users) PostResetPassword(w http.ResponseWriter, r *http.Request)

func (*Users) PostSignup

func (uc *Users) PostSignup(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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