adminmenu

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 12 Imported by: 0

README

Go Report Card GoDoc GolangCI

xmodules/adminmenu for Xamboo - GO

The adminmenu package is used to build an administration menu for all purpose:

  • Each module install its administration apps into this menu
  • You can build your own menus

Version Changes Control

v0.0.1 - 2020-07-23

  • First release

Manual:

I. Admin menus

Intro


  1. Overview

Example:

import "github.com/webability-go/xmodules/adminmenu"


  1. Reference

To use the package:

import "github.com/webability-go/xmodules/adminmenu"

Documentation

Overview

Package user contains the list of administrative user for the system. All users have accesses, into a profile and even extended access based upon table records. It needs context xmodule.

Index

Constants

View Source
const (
	MODULEID   = "adminmenu"
	VERSION    = "0.0.1"
	DATASOURCE = "adminmenudatasource"
)

Variables

View Source
var ModuleAdminMenu = assets.ModuleEntries{
	AddGroup:  AddGroup,
	GetGroup:  GetGroup,
	AddOption: AddOption,
	GetOption: GetOption,
	GetMenu:   GetMenu,
}
View Source
var Needs = []string{"base", "user"}

Functions

func AddGroup

func AddGroup(ds applications.Datasource, key string, name string) error

func AddOption

func AddOption(ds applications.Datasource, data *xdominion.XRecord) error

func GetGroup

func GetGroup(ds applications.Datasource, key string) (*xdominion.XRecord, error)

func GetMenu

func GetMenu(ds applications.Datasource, group string, father string) (*xdominion.XRecords, error)

func GetOption

func GetOption(ds applications.Datasource, key string) (*xdominion.XRecord, error)

func Setup

func Setup(ds applications.Datasource, prefix string) ([]string, error)

InitModule is called during the init phase to link the module with the system adds tables and caches to sitecontext::database

func StartContext

func StartContext(ds applications.Datasource, ctx *context.Context) error

func Synchronize

func Synchronize(ds applications.Datasource, prefix string) ([]string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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