// NewMetaData creates a MetaData struct with some defaults set
NewMetaData creates a MetaData struct with some defaults set
// NewMetaData creates a MetaData struct with some defaults set
func NewMetaData(options ...MetaDataOption) *MetaData {
	now := w.Now()
	md := &MetaData{
		SettingsChanged:        &now,
		MasterKeyChanged:       &now,
		MasterKeyChangeRec:     -1,
		MasterKeyChangeForce:   -1,
		HistoryMaxItems:        10,
		HistoryMaxSize:         6291456, 
		MaintenanceHistoryDays: 365,
	}
	for _, option := range options {
		option(md)
	}
	return md
}
func NewMetaData ( options ... MetaDataOption ) * MetaData { now := w . Now ( ) md := & MetaData { SettingsChanged : & now , MasterKeyChanged : & now , MasterKeyChangeRec : - 1 , MasterKeyChangeForce : - 1 , HistoryMaxItems : 10 , HistoryMaxSize : 6291456 , MaintenanceHistoryDays : 365 , } for _ , option := range options { option ( md ) } return md }
NewMetaData creates a MetaData struct with some defaults set
NewMetaData creates a MetaData struct with some defaults set
// 6 MB