Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormPostgres ¶
func NewGormPostgres(creds GormPostgresConfig) (*gorm.DB, error)
NewGormPostgres initializes a new GORM object for Postgres
func RunCommitRoot ¶
func RunCommitRoot() error
RunCommitRoot whatever the current root is for the root_merkletree is saved to the smart contract
func RunMerkleTreeServer ¶
func RunMerkleTreeServer() error
RunMerkleTreeServer starts the merkle tree service server
Types ¶
type GormPostgresConfig ¶
type GormPostgresConfig struct { Host string Port int Dbname string User string Password string MaxIdleConns *int MaxOpenConns *int ConnMaxLifetime *int LogMode bool }
GormPostgresConfig is the config struct for initializing a GORM object for Postgres.
type RootCron ¶
type RootCron struct {
// contains filtered or unexported fields
}
RootCron controls the root commit cron process
func (*RootCron) RunCronProcess ¶
func (s *RootCron) RunCronProcess(rootService *claims.RootService)
RunCronProcess executes the scheduled code
Click to show internal directories.
Click to hide internal directories.