Documentation
¶
Index ¶
- Variables
- func ExtractIP(r *http.Request) string
- type Context
- func (ctx *Context) Alertf(format string, a ...interface{})
- func (ctx *Context) Execute(t *template.Template, data interface{}) error
- func (ctx *Context) LoggedIn() bool
- func (ctx *Context) Logout()
- func (ctx *Context) Redirect(format string, a ...interface{})
- func (ctx *Context) ServeFile(name string)
- func (ctx *Context) Successf(format string, a ...interface{})
- type Notification
- type UserRepo
- type Web
- func (web Web) AskLeaveUrl(list *ulist.List) string
- func (web Web) AuthenticationAvailable() bool
- func (web Web) CheckbackJoinUrl(list *ulist.List, timestamp int64, hmac string, recipient *ulist.Addr) string
- func (web Web) CheckbackLeaveUrl(list *ulist.List, timestamp int64, hmac string, recipient *ulist.Addr) string
- func (web Web) FooterHTML(list *ulist.List) string
- func (web Web) FooterPlain(list *ulist.List) string
- func (web Web) ListenAndServe() error
- func (web Web) ModUrl(list *ulist.List) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyMember = errors.New("you are already a member of this list")
View Source
var ErrNoList = errors.New("no list or list error") // generic error so we don't reveal whether a non-public list exists
View Source
var ErrNoMember = errors.New("you are not a member of this list")
Functions ¶
Types ¶
type Context ¶
type Context struct {
User *mailutil.Addr
IsSuperadmin bool
Notifications []Notification
Data interface{} // for template
// contains filtered or unexported fields
}
type Notification ¶
type Web ¶
type Web struct {
Ulist *ulist.Ulist
Listen string
URL string
UserRepos []UserRepo // repos are queried in the given order
}
func (Web) AuthenticationAvailable ¶
func (Web) CheckbackJoinUrl ¶
func (Web) CheckbackLeaveUrl ¶
func (Web) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.