db

package
v0.0.0-...-18d19a3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthStore

func NewAuthStore(ctx context.Context) (django.AuthStore, error)

func NewCustomAuthStore

func NewCustomAuthStore(ctx context.Context, auth_tables AuthTables) (django.AuthStore, error)

func NewSessionStore

func NewSessionStore(
	ctx context.Context, secret string, auth django.AuthStore,
) (django.SessionStore, error)

NewSessionStore creates a session store. It verifies that the session related table exists (but not if the table schema is correct).

Types

type AuthTables

type AuthTables struct {
	UserTable             string
	GroupTable            string
	PermissionTable       string
	UserGroupsTable       string
	UserPermissionsTable  string
	GroupPermissionsTable string
}

Jump to

Keyboard shortcuts

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