server

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package server Vulcan

The Vulcan is an users' wallets creator.

Schemes: https
Version: 1.0.0

Produces:
- application/json
Consumes:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(s service.Service, sup supply.Supply, r chi.Router, timeout time.Duration, testMode bool)

SetupRouter setups handlers to chi router.

Types

type ConfirmRequest

type ConfirmRequest struct {
	Email string `json:"email"`
	Code  string `json:"code"`
}

ConfirmRequest ... swagger:model

type DLoan added in v1.5.2

type DLoan struct {
	ID        int     `json:"id"`
	FirstName string  `json:"firstName"`
	LastName  string  `json:"lastName"`
	Address   string  `json:"walletAddress"`
	PDV       float64 `json:"pdvRate"`
	CreatedAt string  `json:"createdAt"`
}

DLoan ... swagger:model

type DLoanRequest added in v1.5.0

type DLoanRequest struct {
	FirstName string  `json:"firstName"`
	LastName  string  `json:"lastName"`
	Address   string  `json:"walletAddress"`
	PDV       float64 `json:"pdvRate"`
}

DLoanRequest ... swagger:model

type EmptyResponse

type EmptyResponse struct{}

EmptyResponse ... swagger:model

type ReferralCodeResponse added in v1.1.0

type ReferralCodeResponse struct {
	Code string `json:"code"`
}

ReferralCodeResponse ... swagger:model

type ReferralTrackingStatsItem added in v1.1.0

type ReferralTrackingStatsItem struct {
	Registered int      `json:"registered"`
	Installed  int      `json:"installed"`
	Confirmed  int      `json:"confirmed"`
	Reward     sdk.Coin `json:"reward"`
}

ReferralTrackingStatsItem ... swagger:model

type ReferralTrackingStatsResponse added in v1.1.0

type ReferralTrackingStatsResponse struct {
	Total      ReferralTrackingStatsItem `json:"total"`
	Last30Days ReferralTrackingStatsItem `json:"last30Days"`
}

ReferralTrackingStatsResponse ... swagger:model

type RegisterRequest

type RegisterRequest struct {
	// required: true
	Email             strfmt.Email `json:"email"`
	Address           string       `json:"address"`
	ReferralCode      *string      `json:"referralCode"`
	RecaptchaResponse string       `json:"recaptchaResponse"`
}

RegisterRequest ... swagger:model

type RegisterStats added in v1.1.0

type RegisterStats struct {
	Total int         `json:"total"`
	Stats []StatsItem `json:"stats"`
}

RegisterStats ... swagger:model

type StatsItem added in v1.1.0

type StatsItem struct {
	Date  string `json:"date"`
	Value int    `json:"value"`
}

StatsItem ... Date is RFC3999 date, value is number of new accounts.

Jump to

Keyboard shortcuts

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