web

package
v0.0.0-...-3195ca0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2014 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(configuration *Configuration) (*server, error)

Types

type ActiveSessions

type ActiveSessions struct {
	sessions.SessionInfo
}

func (*ActiveSessions) CurrentUser

func (t *ActiveSessions) CurrentUser(response http.ResponseWriter, request *http.Request) datastore.User

func (*ActiveSessions) SetCurrentUser

func (t *ActiveSessions) SetCurrentUser(response http.ResponseWriter, request *http.Request, user datastore.User) error

type Authentication

type Authentication struct {
	controller.HTTPController

	Sessions *ActiveSessions
}

func (*Authentication) Routes

func (t *Authentication) Routes() (http.Handler, error)

* Override the Routes Function

type AuthenticationHandler

type AuthenticationHandler struct {
	http.Handler
	Sessions *ActiveSessions
}

func (*AuthenticationHandler) ServeHTTP

func (s *AuthenticationHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)

type Collection

type Collection struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*Collection) Base

func (t *Collection) Base() string

func (*Collection) Routes

func (t *Collection) Routes() (http.Handler, error)

func (*Collection) SetBase

func (t *Collection) SetBase(base string) controller.HTTPController

type Configuration

type Configuration struct {
	Port          string
	Files         string
	DeveloperMode bool
	Sessions      struct {
		Timeout int64
	}
}

type Developer

type Developer struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*Developer) Base

func (t *Developer) Base() string

func (*Developer) Routes

func (t *Developer) Routes() (http.Handler, error)

func (*Developer) SetBase

func (t *Developer) SetBase(base string) controller.HTTPController

type Device

type Device struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*Device) Base

func (t *Device) Base() string

func (*Device) Routes

func (t *Device) Routes() (http.Handler, error)

func (*Device) SetBase

func (t *Device) SetBase(base string) controller.HTTPController

type Internet

type Internet struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*Internet) Base

func (t *Internet) Base() string

func (*Internet) Routes

func (t *Internet) Routes() (http.Handler, error)

func (*Internet) SetBase

func (t *Internet) SetBase(base string) controller.HTTPController

type Root

type Root struct {
	Sessions        *ActiveSessions
	NotFoundHandler http.Handler
	// contains filtered or unexported fields
}

func (*Root) Base

func (t *Root) Base() string

func (*Root) Routes

func (t *Root) Routes() (http.Handler, error)

func (*Root) SetBase

func (t *Root) SetBase(base string) controller.HTTPController

type User

type User struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*User) Base

func (t *User) Base() string

func (*User) Routes

func (t *User) Routes() (http.Handler, error)

func (*User) SetBase

func (t *User) SetBase(base string) controller.HTTPController

type UsersCollections

type UsersCollections struct {
	Sessions *ActiveSessions
	// contains filtered or unexported fields
}

func (*UsersCollections) Base

func (t *UsersCollections) Base() string

func (*UsersCollections) Routes

func (t *UsersCollections) Routes() (http.Handler, error)

func (*UsersCollections) SetBase

Jump to

Keyboard shortcuts

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