view

package
v0.0.0-...-ac6c325 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const TIME_FORMAT = "2006-01-02 03:04PM (MST)"

Variables

This section is empty.

Functions

func AddTemplate

func AddTemplate(paths ...string) *template.Template

Adds a template to the registry.

templates is a list of template file name relative to the template/ directory that are needed to render the full template. The first file will be used as the name for the template group.

func AdminIndexHandler

func AdminIndexHandler(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiAdminRiotKeySetHandler

func ApiAdminRiotKeySetHandler(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiGroupAddUserHandler

func ApiGroupAddUserHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiGroupCreateHandler

func ApiGroupCreateHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiGroupDelUserHandler

func ApiGroupDelUserHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiGroupJoinHandler

func ApiGroupJoinHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiHandleError

func ApiHandleError(c appengine.Context, w http.ResponseWriter, errs ...error) bool

func ApiLeagueAddTeamHandler

func ApiLeagueAddTeamHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiLeagueCreateHandler

func ApiLeagueCreateHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiLeagueGroupAclGrantHandler

func ApiLeagueGroupAclGrantHandler(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiLeagueGroupAclRevokeHandler

func ApiLeagueGroupAclRevokeHandler(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiMatchCreateHandler

func ApiMatchCreateHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiTeamAddPlayerHandler

func ApiTeamAddPlayerHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiTeamDelPlayerHandler

func ApiTeamDelPlayerHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiUserAddSummoner

func ApiUserAddSummoner(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiUserSetPrimarySummoner

func ApiUserSetPrimarySummoner(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func ApiUserVerifySummoner

func ApiUserVerifySummoner(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func GameViewHandler

func GameViewHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func GroupIndexHandler

func GroupIndexHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func GroupViewHandler

func GroupViewHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func GroupViewNotAuthorizedHandler

func GroupViewNotAuthorizedHandler(
	w http.ResponseWriter, c appengine.Context, user *model.User, groupKey *datastore.Key)

func HandleError

func HandleError(c appengine.Context, w http.ResponseWriter, errs ...error) bool

func HomeHandler

func HomeHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func HttpReplyError

func HttpReplyError(
	c appengine.Context,
	w http.ResponseWriter,
	httpStatusCode int,
	useTemplate bool,
	err error)

See http://golang.org/pkg/net/http/#pkg-constants for status codes.

func HttpReplyOkEmpty

func HttpReplyOkEmpty(w http.ResponseWriter)

func HttpReplyResourceCreated

func HttpReplyResourceCreated(w http.ResponseWriter, loc string)

func LeagueGameViewHandler

func LeagueGameViewHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func LeagueIndexHandler

func LeagueIndexHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func LeagueViewHandler

func LeagueViewHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func MatchCreateHandler

func MatchCreateHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, id string, name string, ctx interface{}) error

func SetTemplateRoot

func SetTemplateRoot(newroot string)

Sets the root for further calls to AddTemplate

func SettingsIndexHandler

func SettingsIndexHandler(
	w http.ResponseWriter, r *http.Request, args map[string]string)

func TeamGameHistory

func TeamGameHistory(w http.ResponseWriter, r *http.Request, args map[string]string)

func TeamViewHandler

func TeamViewHandler(w http.ResponseWriter, r *http.Request, args map[string]string)

Types

type Group

type Group struct {
	Name string
	Id   string
	Uri  string
}

func (*Group) Fill

func (g *Group) Fill(m *model.Group, key *datastore.Key) *Group

type GroupAcl

type GroupAcl struct {
	Group   *Group
	CanView bool
	CanEdit bool
}

func (*GroupAcl) Fill

func (ga *GroupAcl) Fill(group *Group, perms map[model.Permission]bool) *GroupAcl

type League

type League struct {
	Name   string
	Owner  string
	Id     string
	Uri    string
	Region string
}

func (*League) Fill

func (l *League) Fill(m *model.League, k *datastore.Key) *League

type Member

type Member struct {
	Email string
	Owner bool
}

func (*Member) Fill

func (m *Member) Fill(u *model.User, membership *model.GroupMembership) *Member

type PlayerInfo

type PlayerInfo struct {
	Id  string
	Uri string

	Summoner string
	Wins     int
	Losses   int
}

func (*PlayerInfo) Fill

func (p *PlayerInfo) Fill(m *model.Player)

type ProposedMember

type ProposedMember struct {
	Email string
	Notes string
}

func (*ProposedMember) Fill

type Team

type Team struct {
	Name string
	Id   string
	Uri  string

	Wins   int
	Losses int
}

func (*Team) Fill

func (t *Team) Fill(
	team *model.Team, teamKey *datastore.Key, leagueKey *datastore.Key) *Team

Jump to

Keyboard shortcuts

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