func (opt *CollectionOptions) Journal(size int) {
	if size <= 0 {
		size = 1
	}
	size = size * 1024 * 1024
	opt.JournalSize = size
}
Sets custom journal size
package aranGO
import (
	"errors"
	nap "github.com/diegogub/napping"
)
type CollectionOptions struct {
	Name        string                 `json:"name"`
	Type        uint                   `json:"type"`
	Sync        bool                   `json:"waitForSync,omitempty"`
	Compact     bool                   `json:"doCompact,omitempty"`
	JournalSize int                    `json:"journalSize,omitempty"`
	System      bool                   `json:"isSystem,omitempty"`
	Volatile    bool                   `json:"isVolatile,omitempty"`
	Keys        map[string]interface{} `json:"keyOptions,omitempty"`
	Count int64 `json:"count"`
	Shards    int      `json:"numberOfShards,omitempty"`
	ShardKeys []string `json:"shardKeys,omitempty"`
}
func NewCollectionOptions(name string, sync bool) *CollectionOptions {
	var copt CollectionOptions
	copt.Name = name
	copt.Sync = sync
	return &copt
}
func (opt *CollectionOptions) IsEdge() {
	opt.Type = 3
	return
}
func (opt *CollectionOptions) IsDocument() {
	opt.Type = 2
	return
}
func (opt *CollectionOptions) MustSync() {
	opt.Sync = true
	return
}
func (opt *CollectionOptions) IsVolatile() {
	opt.Volatile = true
	return
}