professions

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProfession

type IProfession interface {
	GetDriver(name string) (eosc.IExtenderDriver, bool)
}

type IProfessions

type IProfessions interface {
	//eosc.IProfessions
	Get(name string) (*Profession, bool)
	Sort() []*Profession
	List() []*Profession
	Delete(name string) error
	Set(name string, profession *eosc.ProfessionConfig) error
	Reset(configs []*eosc.ProfessionConfig)
}

func NewProfessions

func NewProfessions(extends eosc.IExtenderDrivers) IProfessions

type ITypedProfessionDrivers

type ITypedProfessionDrivers interface {
	Get(name string) (eosc.IExtenderDriver, bool)
	Set(name string, d eosc.IExtenderDriver)
}

func NewProfessionDrivers

func NewProfessionDrivers() ITypedProfessionDrivers

type Profession

type Profession struct {
	*eosc.ProfessionConfig
	// contains filtered or unexported fields
}

func NewProfession

func NewProfession(professionConfig *eosc.ProfessionConfig, extends eosc.IExtenderDrivers) *Profession

func (*Profession) DriverConfig

func (p *Profession) DriverConfig(name string) (*eosc.DriverConfig, bool)

func (*Profession) GetDriver

func (p *Profession) GetDriver(name string) (eosc.IExtenderDriver, bool)

type Professions

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

func (*Professions) Delete

func (ps *Professions) Delete(name string) error

func (*Professions) Get

func (ps *Professions) Get(name string) (*Profession, bool)

func (*Professions) List

func (ps *Professions) List() []*Profession

func (*Professions) Reset

func (ps *Professions) Reset(configs []*eosc.ProfessionConfig)

func (*Professions) Set

func (ps *Professions) Set(name string, c *eosc.ProfessionConfig) error

func (*Professions) Sort

func (ps *Professions) Sort() []*Profession

type TypedProfessionDrivers

type TypedProfessionDrivers struct {
	eosc.Untyped[string, eosc.IExtenderDriver]
}

Jump to

Keyboard shortcuts

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