Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultOptions = &Options{ file: "models.db", dbTimeout: 50 * time.Millisecond, } )
Functions ¶
This section is empty.
Types ¶
type Collection ¶
func (*Collection) Load ¶
func (c *Collection) Load() error
type Collections ¶
func Init ¶
func Init(options *Options) *Collections
func (*Collections) Close ¶
func (cs *Collections) Close() error
func (*Collections) Get ¶
func (cs *Collections) Get(name string) (model.CollectionInterface, error)
func (*Collections) Register ¶
func (cs *Collections) Register(mi model.Interface) (model.CollectionInterface, error)
Click to show internal directories.
Click to hide internal directories.