controllers

package
v0.0.0-...-c901fe9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIAccountSerializer = serializers.ConstructSerializer(func(v interface{}) error {
	if reflect.TypeOf(v).Name() == typeName {
		return nil
	} else {
		return fmt.Errorf("bad serialize on type %s expecting type %s", reflect.TypeOf(v).Name(), typeName)
	}
}).AddFieldAsString("ID").AddField("Username").AddMethod("Acct", "acct").AddField("DisplayName").AddField("Locked").AddField("CreatedAt").AddField("Note").AddField("URL").AddMethod("Avatar", "avatar").AddMethod("AvatarStatic", "avatar_static").AddMethod("Header", "header").AddMethod("HeaderStatic", "header_static").AddField("FollowersCount").AddField("FollowingCount").AddField("StatusesCount")

Functions

This section is empty.

Types

type AboutController

type AboutController struct{}

func (*AboutController) BeforeActivation

func (a *AboutController) BeforeActivation(b mvc.BeforeActivation)

func (*AboutController) BeginRequest

func (a *AboutController) BeginRequest(ctx iris.Context)

func (*AboutController) EndRequest

func (a *AboutController) EndRequest(ctx iris.Context)

func (*AboutController) Get

func (a *AboutController) Get(ctx iris.Context)

type AccountController

type AccountController struct{}

func (*AccountController) BeforeActivation

func (a *AccountController) BeforeActivation(b mvc.BeforeActivation)

func (*AccountController) BeginRequest

func (a *AccountController) BeginRequest(ctx iris.Context)

func (*AccountController) EndRequest

func (a *AccountController) EndRequest(ctx iris.Context)

func (*AccountController) GetBy

func (a *AccountController) GetBy(id int64) mvc.Result

type LoginController

type LoginController struct{}

func (*LoginController) BeforeActivation

func (l *LoginController) BeforeActivation(b mvc.BeforeActivation)

func (*LoginController) BeginRequest

func (l *LoginController) BeginRequest(ctx iris.Context)

func (*LoginController) EndRequest

func (l *LoginController) EndRequest(ctx iris.Context)

func (*LoginController) Get

func (l *LoginController) Get(ctx iris.Context) mvc.Result

func (*LoginController) Post

func (l *LoginController) Post(ctx iris.Context) mvc.Result

func (*LoginController) PostConfirm

func (l *LoginController) PostConfirm(ctx iris.Context) mvc.Result

type LogoutController

type LogoutController struct{}

func (*LogoutController) BeforeActivation

func (l *LogoutController) BeforeActivation(b mvc.BeforeActivation)

func (*LogoutController) BeginRequest

func (l *LogoutController) BeginRequest(ctx iris.Context)

func (*LogoutController) EndRequest

func (l *LogoutController) EndRequest(ctx iris.Context)

func (*LogoutController) Post

func (l *LogoutController) Post(ctx iris.Context) mvc.Result

type OTPController

type OTPController struct{}

func (*OTPController) BeforeActivation

func (o *OTPController) BeforeActivation(b mvc.BeforeActivation)

func (*OTPController) BeginRequest

func (o *OTPController) BeginRequest(ctx iris.Context)

func (*OTPController) EndRequest

func (o *OTPController) EndRequest(ctx iris.Context)

func (*OTPController) GetLogin

func (o *OTPController) GetLogin(ctx iris.Context) mvc.Result

func (*OTPController) GetSettings

func (o *OTPController) GetSettings(ctx iris.Context)

func (*OTPController) Post

func (o *OTPController) Post(ctx iris.Context) mvc.Result

type PublicController

type PublicController struct{}

func (*PublicController) BeforeActivation

func (a *PublicController) BeforeActivation(b mvc.BeforeActivation)

func (*PublicController) BeginRequest

func (a *PublicController) BeginRequest(ctx iris.Context)

func (*PublicController) EndRequest

func (a *PublicController) EndRequest(ctx iris.Context)

func (*PublicController) Get

func (a *PublicController) Get(ctx iris.Context) mvc.Result

func (*PublicController) GetBy

func (a *PublicController) GetBy(ctx iris.Context, param string) mvc.Result

type RegistrationController

type RegistrationController struct{}

func (*RegistrationController) BeforeActivation

func (a *RegistrationController) BeforeActivation(b mvc.BeforeActivation)

func (*RegistrationController) BeginRequest

func (a *RegistrationController) BeginRequest(ctx iris.Context)

func (*RegistrationController) EndRequest

func (a *RegistrationController) EndRequest(ctx iris.Context)

func (*RegistrationController) Post

Jump to

Keyboard shortcuts

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