Documentation ¶
Index ¶
- Variables
- type ModulesSet
- func (s *ModulesSet) Add(mods ...*modules.BasicModule)
- func (s *ModulesSet) Get(name string) *modules.BasicModule
- func (s *ModulesSet) Has(name string) bool
- func (s *ModulesSet) IsInited() bool
- func (s *ModulesSet) Len() int
- func (s *ModulesSet) List() []*modules.BasicModule
- func (s *ModulesSet) NamesInOrder() []string
- func (s *ModulesSet) SetInited()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInited = errors.New("modules haven't been initialized yet")
Functions ¶
This section is empty.
Types ¶
type ModulesSet ¶
type ModulesSet struct {
// contains filtered or unexported fields
}
func (*ModulesSet) Add ¶
func (s *ModulesSet) Add(mods ...*modules.BasicModule)
adds a new module or overwrite an existing
func (*ModulesSet) Get ¶
func (s *ModulesSet) Get(name string) *modules.BasicModule
func (*ModulesSet) Has ¶
func (s *ModulesSet) Has(name string) bool
func (*ModulesSet) IsInited ¶ added in v1.3.7
func (s *ModulesSet) IsInited() bool
func (*ModulesSet) Len ¶
func (s *ModulesSet) Len() int
func (*ModulesSet) List ¶
func (s *ModulesSet) List() []*modules.BasicModule
func (*ModulesSet) NamesInOrder ¶
func (s *ModulesSet) NamesInOrder() []string
func (*ModulesSet) SetInited ¶ added in v1.3.7
func (s *ModulesSet) SetInited()
Click to show internal directories.
Click to hide internal directories.