qfc

package module
v0.0.0-...-46acf63 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 19 Imported by: 0

README

qfc

Quick Forms using the codium database (incomplete)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admins []int64
View Source
var ApprovalFrameworkMailsFn func(docid int64, role, status, message string)
View Source
var BaseTemplate string
View Source
var ExtraCodeMap = make(map[int64]ExtraCode)
View Source
var FILENAME_SEPARATOR = "____"
View Source
var GetCurrentUser func(r *http.Request) (int64, error)
View Source
var Inspectors []int64
View Source
var QFBucketName string
View Source
var SiteDB string

Functions

func AddQFCHandlers

func AddQFCHandlers(r *mux.Router)

func DoesCurrentUserHavePerm

func DoesCurrentUserHavePerm(r *http.Request, documentStructure, permission string) (bool, error)

func GetDocumentStructureList

func GetDocumentStructureList(situation string) ([]string, error)

func GetRoles

func GetRoles() ([]string, error)

Types

type DocData

type DocData struct {
	Label        string
	Name         string
	Type         string
	Required     bool
	Unique       bool
	ReadOnly     bool
	OtherOptions []string
}

func GetDocData

func GetDocData(documentStructure string) ([]DocData, error)

type ExtraCode

type ExtraCode struct {
	ValidationFn   func(postForm url.Values) string
	AfterCreateFn  func(id int64)
	AfterUpdateFn  func(id int64)
	BeforeDeleteFn func(id int64)
	CanCreateFn    func() string
}

type RolePermissions

type RolePermissions struct {
	Role        string
	Permissions string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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