util

package
v0.0.0-...-e4a6ec5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanMap

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

func CreateChanMap

func CreateChanMap() *ChanMap

func (*ChanMap) Broadcast

func (c *ChanMap) Broadcast(username string, slide string, page int)

func (*ChanMap) Get

func (c *ChanMap) Get(username string, slide string, remoteAddr string) chan int

func (*ChanMap) Remove

func (c *ChanMap) Remove(username string, slide string, remoteAddr string)

type LangProvider

type LangProvider struct {
	I18n map[string]map[string]template.HTML
}

func (*LangProvider) Select

func (c *LangProvider) Select(ctx *vitali.Ctx) (lang string)

type UserProvider

type UserProvider struct {
}

func (*UserProvider) AuthHeader

func (c *UserProvider) AuthHeader(r *http.Request) (WWWAuthenticate string)

func (*UserProvider) GetUserAndRoles

func (c *UserProvider) GetUserAndRoles(r *http.Request) (user string, roles []string)

Jump to

Keyboard shortcuts

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