oip5

package
v0.0.0-...-06c96c1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublisherName

func GetPublisherName(pubKey string) (string, error)

func GetRecord

func GetRecord(txid string) (*oip5Record, error)

func GetRecordRevision

func GetRecordRevision(txid string) (*oip5Record, error)

Types

type Applied

type Applied struct {
	Applied bool `json:"applied"`
}

type EMeta

type EMeta struct {
	Block     int64                      `json:"block"`
	BlockHash string                     `json:"block_hash"`
	Applied   bool                       `json:"applied"`
	Invalid   bool                       `json:"invalid"`
	SignedBy  string                     `json:"signed_by"`
	Time      int64                      `json:"time"`
	Tx        *datastore.TransactionData `json:"-"`
	Txid      string                     `json:"txid"`
}

type Invalid

type Invalid struct {
	Invalid bool `json:"invalid"`
}

type Latest

type Latest struct {
	Latest bool `json:"latest"`
}

type MetaApplied

type MetaApplied struct {
	Meta Applied `json:"meta"`
}

type MetaInvalid

type MetaInvalid struct {
	Meta Invalid `json:"meta"`
}

type MetaLatest

type MetaLatest struct {
	Meta Latest `json:"meta"`
}

type RMeta

type RMeta struct {
	Block         int64                      `json:"block"`
	BlockHash     string                     `json:"block_hash"`
	Deactivated   bool                       `json:"deactivated"`
	SignedBy      string                     `json:"signed_by"`
	PublisherName string                     `json:"publisher_name"`
	Time          int64                      `json:"time"`
	Tx            *datastore.TransactionData `json:"-"`
	Txid          string                     `json:"txid"`
	Type          string                     `json:"type"`
	Normalizer    int64                      `json:"normalizer_id,omitempty"`
	Latest        bool                       `json:"latest"`
	Original      string                     `json:"original"`
	History       []string                   `json:"history"`
	LastModified  int64                      `json:"last_modified"`
	RecordRaw     string                     `json:"record_raw"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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