controller

package
v0.0.0-...-d101602 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(db *gorm.DB) (*gorm.DB, error)

func InitializePoolManager

func InitializePoolManager(db *gorm.DB)

func NodeApplyToPool

func NodeApplyToPool(db *gorm.DB, payload models.NodeRequestPayload) (models.NodeProfile, error)

func NodeInPool

func NodeInPool(db *gorm.DB, walletAddress string) (bool, error)

func NodeProfile

func NodeProfile(db *gorm.DB, wallet string) (models.NodeProfile, error)

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)

func PoolWalletOwner

func PoolWalletOwner(db *gorm.DB, walletAddress string) (bool, 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)

Jump to

Keyboard shortcuts

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