talent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Talent

type Talent struct {
	ID int32 `json:"id" bson:"talent_id"`
	// contains filtered or unexported fields
}

type TalentManager

type TalentManager struct {
	Owner     define.PluginObj `gorm:"-" bson:"-"`
	OwnerID   int64            `gorm:"type:bigint(20);primary_key;column:owner_id;index:owner_id;default:-1;not null" bson:"_id"`
	OwnerType int32            `gorm:"type:int(10);primary_key;column:owner_type;index:owner_type;default:-1;not null" bson:"owner_type"`
	Talents   []*Talent        `json:"talents" bson:"talents"`

	sync.RWMutex `bson:"-"`
	// contains filtered or unexported fields
}

func NewTalentManager

func NewTalentManager(owner define.PluginObj, ds *db.Datastore) *TalentManager

func (*TalentManager) AddTalent

func (m *TalentManager) AddTalent(id int32) error

func (*TalentManager) GetTalent

func (m *TalentManager) GetTalent(id int32) *Talent

func (*TalentManager) GetTalentList

func (m *TalentManager) GetTalentList() []*Talent

func (*TalentManager) LoadFromDB

func (m *TalentManager) LoadFromDB()

func (*TalentManager) TableName

func (m *TalentManager) TableName() string

Jump to

Keyboard shortcuts

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