web

package
v0.0.0-...-14b919a Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

func Setup

func Setup() error

Types

type Context

type Context struct {
	SessionUser  data.User
	CreationTime time.Duration
}

func (*Context) AddUserToGroup

func (c *Context) AddUserToGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) AddVariableToGroup

func (c *Context) AddVariableToGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) AddVariableValue

func (c *Context) AddVariableValue(resp web.ResponseWriter, req *web.Request)

func (*Context) ClearValuesForVariable

func (c *Context) ClearValuesForVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) CreateOrUpdateSource

func (c *Context) CreateOrUpdateSource(resp web.ResponseWriter, req *web.Request)

func (*Context) CreateOrUpdateUserGroup

func (c *Context) CreateOrUpdateUserGroup(resp web.ResponseWriter,
	req *web.Request)

func (*Context) CreateOrUpdateVariable

func (c *Context) CreateOrUpdateVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) CreateOrUpdateVariableGroup

func (c *Context) CreateOrUpdateVariableGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) CreateUser

func (c *Context) CreateUser(resp web.ResponseWriter, req *web.Request)

func (*Context) Default

func (c *Context) Default(resp web.ResponseWriter, req *web.Request)

func (*Context) DeleteSource

func (c *Context) DeleteSource(resp web.ResponseWriter, req *web.Request)

func (*Context) DeleteUser

func (c *Context) DeleteUser(resp web.ResponseWriter, req *web.Request)

func (*Context) DeleteUserGroup

func (c *Context) DeleteUserGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) DeleteVariable

func (c *Context) DeleteVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) DeleteVariableGroup

func (c *Context) DeleteVariableGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) GetAllSources

func (c *Context) GetAllSources(resp web.ResponseWriter, req *web.Request)

func (*Context) GetAllUserGroups

func (c *Context) GetAllUserGroups(resp web.ResponseWriter, req *web.Request)

func (*Context) GetAllUsers

func (c *Context) GetAllUsers(resp web.ResponseWriter, req *web.Request)

func (*Context) GetAllVariableGroups

func (c *Context) GetAllVariableGroups(resp web.ResponseWriter, req *web.Request)

func (*Context) GetAllVariables

func (c *Context) GetAllVariables(resp web.ResponseWriter, req *web.Request)

func (*Context) GetGroupsForUser

func (c *Context) GetGroupsForUser(resp web.ResponseWriter, req *web.Request)

func (*Context) GetGroupsForVariable

func (c *Context) GetGroupsForVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) GetSource

func (c *Context) GetSource(resp web.ResponseWriter, req *web.Request)

func (*Context) GetSourceWithId

func (c *Context) GetSourceWithId(resp web.ResponseWriter, req *web.Request)

func (*Context) GetUser

func (c *Context) GetUser(resp web.ResponseWriter, req *web.Request)

func (*Context) GetUserGroup

func (c *Context) GetUserGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) GetUsersInGroup

func (c *Context) GetUsersInGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) GetValuesForVariable

func (c *Context) GetValuesForVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) GetVariable

func (c *Context) GetVariable(resp web.ResponseWriter, req *web.Request)

func (*Context) GetVariableGroup

func (c *Context) GetVariableGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) GetVariableGroupWithId

func (c *Context) GetVariableGroupWithId(resp web.ResponseWriter, req *web.Request)

func (*Context) GetVariableWithId

func (c *Context) GetVariableWithId(resp web.ResponseWriter, req *web.Request)

func (*Context) GetVariablesInGroup

func (c *Context) GetVariablesInGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) Login

func (c *Context) Login(resp web.ResponseWriter, req *web.Request)

func (*Context) Logout

func (c *Context) Logout(resp web.ResponseWriter, req *web.Request)

func (*Context) RemoveUserFromGroup

func (c *Context) RemoveUserFromGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) RemoveVariableFromGroup

func (c *Context) RemoveVariableFromGroup(resp web.ResponseWriter, req *web.Request)

func (*Context) SessionChecker

func (c *Context) SessionChecker(rw web.ResponseWriter,
	req *web.Request,
	next web.NextMiddlewareFunc)

type OrekError

type OrekError struct {
	ErrorType    string `json:"errorType"`
	ErrorMessage string `json:"ErrorMessage"`
}

type Session

type Session struct {
	Result    bool      `json:"result"`
	SessionId string    `json:"sessionId"`
	User      data.User `json:"user"`
}

Jump to

Keyboard shortcuts

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