gitlab.com/SiaPrime/SiaPrime@v1.4.1/modules/index.go (about)

     1  package modules
     2  
     3  import (
     4  // "github.com/SiaPrime/SiaPrime/types"
     5  )
     6  
     7  const (
     8  	// IndexDir names the directory that contains the index persistence.
     9  	IndexDir = "index"
    10  )
    11  
    12  var (
    13  // Whatever variables we need as we go
    14  )
    15  
    16  type (
    17  	// Index is a module help import info to RDB like Mysql and caculat all address coin info
    18  	Index interface {
    19  		// Scan will go through every block and try to sync every block info
    20  		Scan() error
    21  
    22  		// Close closes the Index.
    23  		Close() error
    24  	}
    25  )