app

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package app for activation backend app

Package app for activation backend app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationData

type ActivationData struct {
	Name  string `json:"name" binding:"required"`
	Email string `json:"email" binding:"required"`
}

ActivationData struct for data needed while activation

type ActivationInput

type ActivationInput struct {
	KYCSignature       string         `json:"kycSignature"`
	Data               ActivationData `json:"data"`
	SubstrateAccountID string         `json:"substrateAccountID" binding:"required" validate:"nonzero"`
}

ActivationInput struct for data needed while activation

type App

type App struct {
	// contains filtered or unexported fields
}

App for all dependencies of backend server

func NewApp

func NewApp(ctx context.Context, configFile string) (app *App, err error)

NewApp creates new server app all configurations

func (*App) Start

func (a *App) Start(ctx context.Context) (err error)

Start starts the app

type Handler

type Handler func(r *http.Request, w http.ResponseWriter) (interface{}, Response)

Handler interface

type Response

type Response interface {
	Status() int
	Err() error

	// header getter
	Header() http.Header
	// header setter
	WithHeader(k, v string) Response
}

Response interface

Jump to

Keyboard shortcuts

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