Documentation ¶
Index ¶
- func GenerateSha256HashString(input string) string
- func ParseBlockchain(blockchainName string) (common.Blockchain, error)
- func ParseCompression(compression string) (api.Compression, error)
- func ParseNetwork(networkName string) (common.Network, error)
- func ParseSidechain(sidechainName string) (api.SideChain, error)
- func SinceTimestamp(timestamp *timestamppb.Timestamp) time.Duration
- func ToTimestamp(seconds int64) *timestamppb.Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSha256HashString ¶
GenerateSha256HashString A hash function to obfuscate the input string. This is to prevent the input from being leaked to the public.
func ParseBlockchain ¶
func ParseBlockchain(blockchainName string) (common.Blockchain, error)
ParseBlockchain converts a blockchain name, e.g. `ethereum`, to the proto definition, e.g. `common.Blockchain_BLOCKCHAIN_ETHEREUM`.
func ParseCompression ¶
func ParseCompression(compression string) (api.Compression, error)
func ParseNetwork ¶
ParseNetwork converts a network name, e.g. `stellar-testnet`, to the proto definition, e.g. `common.Network_NETWORK_STELLAR_TESTNET`
func ParseSidechain ¶
ParseSidechain converts a sidechain name, e.g. `ethereum-mainnet-beacon`, to the proto definition, e.g. `api.SideChain_SIDECHAIN_ETHEREUM_MAINNET_BEACON`
func SinceTimestamp ¶
func SinceTimestamp(timestamp *timestamppb.Timestamp) time.Duration
func ToTimestamp ¶
func ToTimestamp(seconds int64) *timestamppb.Timestamp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.