admin

package
v0.0.0-...-0484061 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(a Admin)

Types

type Admin

type Admin interface {
	IsAdmin(*user.User) bool
	GetUsers() []*user.User
	GetProjects(user ...*user.User) []*project.Project
	DeleteUser(u *user.User) error
	SetAdmin(u *user.User) error
	SetLevel(u *user.User, level int) error
	RemoveAdmin(*user.User) error
}

func Get

func Get() Admin

Jump to

Keyboard shortcuts

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