server

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package server Vulcan

The Vulcan is an users' wallets creator.

Schemes: https
BasePath: /v1
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)

SetupRouter setups handlers to chi router.

Types

type ConfirmRequest

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

ConfirmRequest ... 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     int `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"`
}

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