data

package
v0.0.0-...-f1d979d Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: GPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint

Type is an enumeration for data type

const (
	// TxData is equal to Bytes data type but uses transaction data to store the data
	TxData Type = iota
	// String stored in Ethereum storage
	String Type = iota
	// Bytes stored in Ethereum storage
	Bytes Type = iota
	// Address stored in Ethereum storage
	Address Type = iota
	// Uint stored in Ethereum storage
	Uint Type = iota
	// Int stored in Ethereum storage
	Int Type = iota
	// Bool stored in Ethereum storage
	Bool Type = iota
	// IPFS hash stored in Ethereum storage, data stored in IPFS
	IPFS Type = iota
)

func TypeString

func TypeString(s string) (Type, error)

TypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func TypeValues

func TypeValues() []Type

TypeValues returns all values of the enum

func (Type) IsAType

func (i Type) IsAType() bool

IsAType returns "true" if the value is listed in the enum definition. "false" otherwise

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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