web

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Kind    MessageKind
	Message string
}

type MessageKind

type MessageKind string
const (
	SUCCESS MessageKind = "success"
	WARNING MessageKind = "warning"
	DANGER  MessageKind = "danger"
)

type PasswordForm

type PasswordForm struct {
	Password  string
	Password2 string
	Doorpass  string
	Doorpass2 string
	Error     string
	ErrorMsg  string
}

type PasswordTemplateData

type PasswordTemplateData struct {
	Form     *PasswordForm
	Messages []Message
}

type RegisterForm

type RegisterForm struct {
	Nickname string
	EMail    string
	MlAddr   string
	Error    string
	ErrorMsg string
}

type RegisterTemplateData

type RegisterTemplateData struct {
	Form     *RegisterForm
	Messages []Message
}

type ResetForm

type ResetForm struct {
	Nickname string
	Error    string
	ErrorMsg string
}

type ResetTemplateData

type ResetTemplateData struct {
	Form     *ResetForm
	Messages []Message
}

type Web

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

func New

func New(mailer core.Mailer, ld core.LdapDialer) (web *Web, err error)

func (*Web) GetMux

func (web *Web) GetMux() http.Handler

Jump to

Keyboard shortcuts

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