controller

package
v0.0.0-...-d44ee03 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stats

func Stats(c *gin.Context)

Stats API

func StatsWorker

func StatsWorker(statsChan <-chan *gin.Context)

Go routine for processing stats messages

func TestBodyDistribution

func TestBodyDistribution(seed string)

For generating CSV documents for algorithm analysis

func TestHairDistribution

func TestHairDistribution(seed string)

Types

type NanoController

type NanoController struct {
	RPCClient       *net.RPCClient
	SIOServer       *socketio.Server
	DonationAccount string
}

func (NanoController) Callback

func (nc NanoController) Callback(confirmationResponse net.ConfirmationResponse)

Handle callback for donation listener

func (NanoController) CheckMissedCallbacks

func (nc NanoController) CheckMissedCallbacks()

Cron job for checking missed callbacks

func (NanoController) UpdatePrincipalReps

func (nc NanoController) UpdatePrincipalReps()

Cron job for updating principal reps

func (NanoController) UpdatePrincipalWeight

func (nc NanoController) UpdatePrincipalWeight()

Cron job for updating principal rep weight requirement

type NatriconController

type NatriconController struct {
	Seed           string
	StatsChannel   *chan *gin.Context
	ImageConverter *image.ImageConverter
}

func (NatriconController) GetNano

func (nc NatriconController) GetNano(c *gin.Context)

Generate natricon with given nano address

func (NatriconController) GetNatricon

func (nc NatriconController) GetNatricon(c *gin.Context)

func (NatriconController) GetNonce

func (nc NatriconController) GetNonce(c *gin.Context)

APIs Get current nonce for a natricon

func (NatriconController) GetRandom

func (nc NatriconController) GetRandom(c *gin.Context)

func (NatriconController) GetRandomSvg

func (nc NatriconController) GetRandomSvg(c *gin.Context)

Testing APIs

Jump to

Keyboard shortcuts

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