Documentation ¶
Index ¶
- Constants
- type ITypeProfessionData
- type Profession
- func (p *Profession) AppendAttr() []string
- func (p *Profession) DeleteDriver(name string) error
- func (p *Profession) Detail() *eosc.ProfessionDetail
- func (p *Profession) Drivers() []*eosc.DriverInfo
- func (p *Profession) DriversItem() []*eosc.Item
- func (p *Profession) GetDriver(name string) (*eosc.DriverDetail, bool)
- func (p *Profession) HasDriver(name string) bool
- func (p *Profession) SetDriver(name string, detail *eosc.DriverConfig) error
- type Professions
- func (p *Professions) All() []*eosc.ProfessionConfig
- func (p *Professions) Delete(name string) error
- func (p *Professions) GetProfession(name string) (eosc.IProfessionData, bool)
- func (p *Professions) Infos() []*eosc.ProfessionInfo
- func (p *Professions) Reset(professions []*eosc.ProfessionConfig)
- func (p *Professions) Set(name string, profession *eosc.ProfessionConfig) error
- type TProfessionData
Constants ¶
View Source
const (
SpaceProfession = "profession"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITypeProfessionData ¶
type ITypeProfessionData interface { Set(name string, profession *Profession) List() []*Profession Del(name string) (*Profession, bool) Get(name string) (*Profession, bool) Data() []*eosc.ProfessionConfig }
func NewProfessionData ¶
func NewProfessionData() ITypeProfessionData
type Profession ¶
type Profession struct {
// contains filtered or unexported fields
}
func NewProfession ¶
func NewProfession(config *eosc.ProfessionConfig) *Profession
func (*Profession) AppendAttr ¶
func (p *Profession) AppendAttr() []string
func (*Profession) DeleteDriver ¶
func (p *Profession) DeleteDriver(name string) error
func (*Profession) Detail ¶
func (p *Profession) Detail() *eosc.ProfessionDetail
func (*Profession) Drivers ¶
func (p *Profession) Drivers() []*eosc.DriverInfo
func (*Profession) DriversItem ¶
func (p *Profession) DriversItem() []*eosc.Item
func (*Profession) GetDriver ¶
func (p *Profession) GetDriver(name string) (*eosc.DriverDetail, bool)
func (*Profession) HasDriver ¶
func (p *Profession) HasDriver(name string) bool
func (*Profession) SetDriver ¶
func (p *Profession) SetDriver(name string, detail *eosc.DriverConfig) error
type Professions ¶
type Professions struct {
// contains filtered or unexported fields
}
func NewProfessions ¶
func NewProfessions() *Professions
func (*Professions) All ¶
func (p *Professions) All() []*eosc.ProfessionConfig
func (*Professions) Delete ¶
func (p *Professions) Delete(name string) error
func (*Professions) GetProfession ¶
func (p *Professions) GetProfession(name string) (eosc.IProfessionData, bool)
func (*Professions) Infos ¶
func (p *Professions) Infos() []*eosc.ProfessionInfo
func (*Professions) Reset ¶
func (p *Professions) Reset(professions []*eosc.ProfessionConfig)
func (*Professions) Set ¶
func (p *Professions) Set(name string, profession *eosc.ProfessionConfig) error
type TProfessionData ¶
type TProfessionData struct {
// contains filtered or unexported fields
}
func (*TProfessionData) Data ¶
func (d *TProfessionData) Data() []*eosc.ProfessionConfig
func (*TProfessionData) Del ¶
func (d *TProfessionData) Del(name string) (*Profession, bool)
func (*TProfessionData) Get ¶
func (d *TProfessionData) Get(name string) (*Profession, bool)
func (*TProfessionData) List ¶
func (d *TProfessionData) List() []*Profession
func (*TProfessionData) Set ¶
func (d *TProfessionData) Set(name string, profession *Profession)
Click to show internal directories.
Click to hide internal directories.