idhubmain

package
v0.0.0-...-cda998f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 48 Imported by: 0

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 RunCLI

func RunCLI() error

RunCLI runs the idhub cli command

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

func RunServer

func RunServer() error

RunServer runs the ID Hub service

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) CheckCron

func (s *RootCron) CheckCron()

CheckCron emits cron messages

func (*RootCron) RunCronProcess

func (s *RootCron) RunCronProcess(rootService *claims.RootService)

RunCronProcess executes the scheduled code

func (*RootCron) StartCron

func (s *RootCron) StartCron(config *utils.IDHubConfig) error

StartCron kicks off the cron process

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL