api

package
Version: v0.0.0-...-dcefb82 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// not defined in giota library
	MaxTimestampValue = 3812798742493 // int64(3^27 - 1) / 2
)

Variables

This section is empty.

Functions

func End

func End()

func IsValidPoW

func IsValidPoW(hash giota.Trits, mwm int) bool

TODO: maybe the trytes/trits/runes conversions should be ported to the version in gIOTA library Hercules still uses home-brew conversions and types

func Start

func Start()

Types

type APIImplementation

type APIImplementation func(request Request, c *gin.Context, ts time.Time)

type Request

type Request struct {
	Command      string
	Hashes       []string
	Uris         []string
	Addresses    []string
	Bundles      []string
	Tags         []string
	Approvees    []string
	Transactions []string
	Trytes       []string
	Reference    string
	Depth        int
	Timestamp    int64
	Filename     string
	// for attachToTangle
	TrunkTransaction   string
	BranchTransaction  string
	MinWeightMagnitude int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL