Documentation ¶
Index ¶
- func Initialize(db *gorm.DB) (*gorm.DB, error)
- func InitializePoolManager(db *gorm.DB)
- func NodeApplyToPool(db *gorm.DB, payload models.NodeRequestPayload) (models.NodeProfile, error)
- func NodeInPool(db *gorm.DB, walletAddress string) (bool, error)
- func NodeProfile(db *gorm.DB, wallet string) (models.NodeProfile, error)
- func NodeUpdateProfile(db *gorm.DB, payload models.NodeRequestPayload) (models.NodeProfile, error)
- func NodesAccepted(db *gorm.DB) ([]models.NodeProfile, error)
- func PoolInformation(db *gorm.DB) (models.PoolInformation, error)
- func PoolWalletOwner(db *gorm.DB, walletAddress string) (bool, error)
- type FullProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializePoolManager ¶
func NodeApplyToPool ¶
func NodeApplyToPool(db *gorm.DB, payload models.NodeRequestPayload) (models.NodeProfile, error)
func NodeProfile ¶
func NodeUpdateProfile ¶
func NodeUpdateProfile(db *gorm.DB, payload models.NodeRequestPayload) (models.NodeProfile, error)
func NodesAccepted ¶
func NodesAccepted(db *gorm.DB) ([]models.NodeProfile, error)
func PoolInformation ¶
func PoolInformation(db *gorm.DB) (models.PoolInformation, error)
Types ¶
type FullProfile ¶
type FullProfile struct { NodeProfile models.NodeProfile `json:"profile"` PoolInformation models.PoolInformation `json:"pool"` }
func NodePoolApplication ¶
func NodePoolApplication(db *gorm.DB, wallet string) (FullProfile, error)
Click to show internal directories.
Click to hide internal directories.