github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/bactor/model.go (about)

     1  package bactor
     2  
     3  import (
     4  	"github.com/sixexorg/magnetic-ring/common"
     5  )
     6  
     7  type HeightChange struct {
     8  	Height uint64
     9  }
    10  type LeagueRadarCache struct {
    11  	LeagueId  common.Address
    12  	BlockHash common.Hash
    13  	Height    uint64
    14  }
    15  
    16  //P2p and consensus switch
    17  type P2pSyncMutex struct {
    18  	Lock bool
    19  }
    20  
    21  type ParticiConfig struct {
    22  	BlkNum      uint64
    23  	View        uint32
    24  	ProcNodes   []string
    25  	ObserNodes  []string
    26  	FailsNodes  []string
    27  	PartiRaw    []string
    28  	StarsSorted []string
    29  }
    30  
    31  type Teller interface {
    32  	Tell(message interface{})
    33  }
    34  
    35  type InitTellerfunc func() (Teller, error)