webserver

package
v0.0.0-...-499c518 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(port int)

Start sets up a webserver and it routes to handlers

Types

type CommonData

type CommonData struct {
	PageTitle     string
	Organizations []Organization
	Keys          []Key
	Transactions  []transaction.Transaction
	ObjectTypes   []ObjectType
	Result        string
}

type Key

type Key struct {
	Name           string
	Address        string
	DerivationPath string
}

type ObjectType

type ObjectType struct {
	Name  string
	Value int
}

type Organization

type Organization struct {
	Name            string
	Description     string
	MasterPublicKey string
	Transaction     string
	Active          bool
}

type ShowTransactionData

type ShowTransactionData struct {
	PageTitle    string
	Organization transaction.Organization
	Hash         string
	ObjectType   string
	Data         string
	Targets      []string
	Date         string
	DownloadLink string // in case it is a downloadable
	Result       string // in case it is an executable
}

Jump to

Keyboard shortcuts

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