users

package
v0.0.0-...-d8099e1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAction

func HasAction(actions []user.UserAction, action user.UserAction) bool

Types

type CacheSyncScript

type CacheSyncScript struct {
	// contains filtered or unexported fields
}

func (CacheSyncScript) Index

func (s CacheSyncScript) Index() string

func (CacheSyncScript) PluginName

func (s CacheSyncScript) PluginName() string

func (CacheSyncScript) SetCache

func (s CacheSyncScript) SetCache(response *elastic.SearchResult) error

type Users

type Users struct {
	// contains filtered or unexported fields
}

Users plugin deals with user management.

func Instance

func Instance() *Users

Use only this function to fetch the instance of user from within this package to avoid creating stateless duplicates of the plugin. However, instance of Users is not meant to be used outside the package.

func (*Users) ESMiddleware

func (u *Users) ESMiddleware() []middleware.Middleware

Default empty middleware array function

func (*Users) InitFunc

func (u *Users) InitFunc() error

InitFunc is the implementation of Plugin interface.

func (*Users) Name

func (u *Users) Name() string

Name is the implementation of Plugin interface.

func (*Users) RSMiddleware

func (u *Users) RSMiddleware() []middleware.Middleware

Default empty middleware array function

func (*Users) Routes

func (u *Users) Routes() []plugins.Route

Routes is the implementation of plugin interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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