Documentation ¶
Index ¶
- Constants
- func CalcStandByNodes(voteResult []*api.VoteInfo) []*api.VoteInfo
- func Get(url string, result interface{}) error
- func GetAddressFromControlProgram(prog []byte) string
- func GetControlProgramFromAddress(address string) ([]byte, error)
- func NewMySQLDB(cfg MySQLConfig) (*gorm.DB, error)
- func Post(url string, payload []byte, result interface{}) error
- type MySQLConfig
- type MySQLConnection
- type Timestamp
Constants ¶
View Source
const NumOfBPNode = 42
Variables ¶
This section is empty.
Functions ¶
func CalcStandByNodes ¶ added in v1.0.1
func GetControlProgramFromAddress ¶ added in v1.0.1
func NewMySQLDB ¶
func NewMySQLDB(cfg MySQLConfig) (*gorm.DB, error)
Types ¶
type MySQLConfig ¶
type MySQLConfig struct { Connection MySQLConnection `json:"connection"` LogMode bool `json:"log_mode"` }
type MySQLConnection ¶
type Timestamp ¶ added in v1.0.2
func (*Timestamp) MarshalJSON ¶ added in v1.0.2
func (*Timestamp) UnmarshalJSON ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.