network

package
v0.4.29 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "networks"

Variables

NetworkToWorkersMap is a map of network to workers.

View Source
var WorkerToConfigMap = map[network.Source]map[worker.Worker]workerConfig{
	network.EthereumSource: {
		worker.Aave: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Aave,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Aavegotchi: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "Your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Aavegotchi,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Core: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Core,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Crossbell: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Crossbell,
				Description: "Your evm worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Curve: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Curve,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.ENS: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Aave,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Highlight: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Highlight,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.IQWiki: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.IQWiki,
				Description: "Your evm worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.KiwiStand: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.KiwiStand,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Lens: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Lens,
				Description: "Your evm worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service. You are recommended to use your own ipfs gateways because the default ones are not stable for lens",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Lido: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Lido,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Looksrare: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Looksrare,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Matters: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Matters,
				Description: "Your evm worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.OpenSea: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.OpenSea,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Optimism: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Optimism,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.RSS3: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.RSS3,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.SAVM: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.SAVM,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Stargate: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Stargate,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.Uniswap: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Uniswap,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
		worker.VSL: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.VSL,
				Description: "Your evm worker name",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				BlockNumberStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will start from this block number, if it's not defined, we will use the recommended one(~3 months)"},
				BlockNumberTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your worker will stop at this block number, if it's not defined, your worker will always indexing new blocks",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of concurrent RPC requests to the blockchain rpc, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
				RPCBatchReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(200),
					Description: "The number of receipts to fetch in a single RPC request, the default value is 200, you can adjust it based on your server performance",
				},
				RPCBatchBlockReceipts: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(8),
					Description: "The number of blocks to fetch receipts in a single RPC request, the default value is 8, you can adjust it based on your server performance",
				},
			},
		},
	},
	network.ArweaveSource: {
		worker.Mirror: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       network.Arweave,
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Mirror,
				Description: "Your arweave worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service",
			},
			Parameters: &Parameters{
				BlockHeightStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will start from this block height, if it's not defined, we will use the recommended one(~3 months)",
				},
				BlockHeightTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will stop at this block height, if it's not defined, your worker will always indexing",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(1),
					Description: "The number of concurrent RPC requests to the arweave endpoints or gateways, it's recommended to set it to 1 because the strict rate limit of arweave",
				},
			},
		},
		worker.Momoka: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       network.Arweave,
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Momoka,
				Description: "Your arweave worker name",
			},
			IPFSGateways: &ConfigDetail{
				IsRequired:  false,
				Type:        "[]string",
				Description: "You can define your own ipfs gateways instead of using the default ones if your worker heavily depends on ipfs service. You are recommended to use your own ipfs gateways because the default ones are not stable for momoka",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You should set polygon endpoint id for momoka worker because it depends on lens contract",
			},
			Parameters: &Parameters{
				BlockHeightStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will start from this block height, if it's not defined, we will use the recommended one(~3 months)",
				},
				BlockHeightTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will stop at this block height, if it's not defined, your worker will always indexing",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(1),
					Description: "The number of concurrent RPC requests to the arweave endpoints or gateways, it's recommended to set it to 1 because the strict rate limit of arweave",
				},
			},
		},
		worker.Paragraph: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       network.Arweave,
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Paragraph,
				Description: "Your arweave worker name",
			},
			Parameters: &Parameters{
				BlockHeightStart: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will start from this block height, if it's not defined, we will use the recommended one(~3 months)",
				},
				BlockHeightTarget: &ConfigDetail{
					IsRequired:  false,
					Type:        "big.Int",
					Description: "Your arweave worker will stop at this block height, if it's not defined, your worker will always indexing",
				},
				RPCThreadBlocks: &ConfigDetail{
					IsRequired:  false,
					Type:        "uint",
					Value:       uint(1),
					Description: "The number of concurrent RPC requests to the arweave endpoints or gateways, it's recommended to set it to 1 because the strict rate limit of arweave",
				},
			},
		},
	},
	network.FarcasterSource: {
		worker.Core: {
			ID: ConfigDetail{
				IsRequired:  false,
				Type:        "string",
				Description: "You can define your own worker id, you are recommended to use `[network]-[worker]`",
			},
			Network: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       network.Farcaster,
				Description: "Your worker is running on the defined network",
			},
			Worker: ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Value:       worker.Core,
				Description: "Your farcaster worker name, currently we only support core",
			},
			EndpointID: &ConfigDetail{
				IsRequired:  true,
				Type:        "string",
				Description: "You can fill this field with a global endpoint id (should be pre-defined in endpoints part) or a url",
			},
			Parameters: &Parameters{
				APIKey: &ConfigDetail{
					IsRequired:  false,
					Type:        "string",
					Description: "API key for your own farcaster hub",
				},
			},
		},
	},
}

WorkerToConfigMap is a map of worker to config.

Functions

func NewComponent

func NewComponent(_ context.Context, apiServer *echo.Echo, config *config.File) component.Component

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func (*Component) CollectMetric

func (c *Component) CollectMetric(ctx context.Context, value string)

func (*Component) GetNetworksHandler

func (c *Component) GetNetworksHandler(ctx echo.Context) error

GetNetworksHandler returns the list of all networks that the node can support.

func (*Component) GetWorkerConfig

func (c *Component) GetWorkerConfig(ctx echo.Context) error

GetWorkerConfig returns the recommended configuration for the specified worker.

func (*Component) GetWorkersByNetwork

func (c *Component) GetWorkersByNetwork(ctx echo.Context) error

GetWorkersByNetwork returns list of all workers for the specified network.

func (*Component) InitMeter

func (c *Component) InitMeter() (err error)

func (*Component) Name

func (c *Component) Name() string

type ConfigDetail

type ConfigDetail struct {
	IsRequired  bool        `json:"isRequired"`
	Type        string      `json:"type"`
	Value       interface{} `json:"value"`
	Description string      `json:"description"`
}

type Endpoint

type Endpoint struct {
	URL           *ConfigDetail `json:"url"`
	HTTPHeaders   *ConfigDetail `json:"http_headers"`
	HTTP2Disabled *ConfigDetail `json:"http2_disabled"`
}

type ListWorkerResponse

type ListWorkerResponse struct {
	Data []worker.Worker `json:"data"`
}

type Parameters

type Parameters struct {
	BlockHeightStart      *ConfigDetail `json:"block_height_start,omitempty"`
	BlockHeightTarget     *ConfigDetail `json:"block_height_target,omitempty"`
	BlockNumberStart      *ConfigDetail `json:"block_number_start,omitempty"`
	BlockNumberTarget     *ConfigDetail `json:"block_number_target,omitempty"`
	RPCThreadBlocks       *ConfigDetail `json:"rpc_thread_blocks,omitempty"`
	RPCBatchBlocks        *ConfigDetail `json:"rpc_batch_blocks,omitempty"`
	RPCBatchReceipts      *ConfigDetail `json:"rpc_batch_receipts,omitempty"`
	RPCBatchBlockReceipts *ConfigDetail `json:"rpc_batch_block_receipts,omitempty"`
	APIKey                *ConfigDetail `json:"api_key,omitempty"`
}

type Request

type Request struct {
	Network string `param:"network" validate:"required"`
}

type Response

type Response struct {
	Data []string `json:"data"`
}

type WorkerConfigResponse

type WorkerConfigResponse struct {
	Data workerConfig `json:"data"`
}

type WorkerRequest

type WorkerRequest struct {
	Network string `param:"network" validate:"required"`
	Worker  string `param:"worker" validate:"required"`
}

Jump to

Keyboard shortcuts

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