server

package
v0.0.0-...-99e6a18 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionManager *session.Manager

Functions

func ListenAndServe

func ListenAndServe(addr string, auth Auth, dbType DatabaseType)

Types

type Auth

type Auth struct {
	UserName string
	Password string
}

func (Auth) GetCurrentUser

func (a Auth) GetCurrentUser(c *admin.Context) qor.CurrentUser

func (Auth) LoginURL

func (a Auth) LoginURL(c *admin.Context) string

func (Auth) LogoutURL

func (a Auth) LogoutURL(c *admin.Context) string

type DatabaseType

type DatabaseType int
const (
	DB_SQLite DatabaseType
	DB_MySQL
)

type User

type User struct {
	Name string
}

func (User) DisplayName

func (u User) DisplayName() string

Jump to

Keyboard shortcuts

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