manager

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppData

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

func NewAppData

func NewAppData() *AppData

func (*AppData) All

func (a *AppData) All() []string

func (*AppData) Del

func (a *AppData) Del(appID string)

func (*AppData) Get

func (a *AppData) Get(appID string) ([]string, bool)

func (*AppData) Set

func (a *AppData) Set(appID string, ids []string)

type AppManager

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

func NewAppManager

func NewAppManager() *AppManager

func (*AppManager) DelByAppID

func (a *AppManager) DelByAppID(appID string)

func (*AppManager) DelByDriver

func (a *AppManager) DelByDriver(driver string)

func (*AppManager) GetByAppID

func (a *AppManager) GetByAppID(appID string) []string

func (*AppManager) GetByDriver

func (a *AppManager) GetByDriver(driver string) []string

func (*AppManager) Set

func (a *AppManager) Set(appID string, driver string, ids []string)

type IAppManager

type IAppManager interface {
	GetByAppID(appID string) []string
	GetByDriver(driver string) []string
	Set(appID string, driver string, ids []string)
	DelByDriver(driver string)
	DelByAppID(appID string)
}

type IManager

type IManager interface {
	Get(id string) (application.IAuth, bool)
	List() []application.IAuthUser
	ListByDriver(driver string) []application.IAuthUser
	Set(app application.IApp, filters []application.IAuth, users map[string][]application.ITransformConfig)
	Del(appID string)
	Count() int
	AnonymousApp() application.IApp
	SetAnonymousApp(app application.IApp)
}

func NewManager

func NewManager(driverAlias map[string]string, drivers []string) IManager

type Manager

type Manager struct {
	// filters map[string]application.IAuthUser
	eosc.Untyped[string, application.IAuth]
	// contains filtered or unexported fields
}

func (*Manager) AnonymousApp added in v0.8.2

func (m *Manager) AnonymousApp() application.IApp

func (*Manager) Del

func (m *Manager) Del(appID string)

func (*Manager) List

func (m *Manager) List() []application.IAuthUser

func (*Manager) ListByDriver

func (m *Manager) ListByDriver(driver string) []application.IAuthUser

func (*Manager) Set

func (m *Manager) Set(app application.IApp, filters []application.IAuth, users map[string][]application.ITransformConfig)

func (*Manager) SetAnonymousApp added in v0.8.2

func (m *Manager) SetAnonymousApp(app application.IApp)

Jump to

Keyboard shortcuts

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