Documentation ¶
Index ¶
- Constants
- Variables
- func CreateUserProfile(cmd *cobra.Command, args []string)
- func Deploy(cmd *cobra.Command, args []string)
- func Execute()
- func ExitWithError(msg string, err error)
- func GetAIQueryCIDContent(cmd *cobra.Command, args []string)
- func GetNetworkAddress() string
- func ParseAddress(addrHex string) (common.Address, error)
- func StoreCID(cmd *cobra.Command, args []string)
Constants ¶
View Source
const (
// NetworkFlag is the name of the flag used to specify the network.
NetworkFlag = "network"
)
Variables ¶
View Source
var ( // RootCmd is the root command for the SovereignAISearchStorage application. RootCmd = &cobra.Command{ Use: "SovereignAISearchStorage", Short: "SovereignAISearch empowers users with complete control over AI search results, ensuring decentralized storage and privacy.", } )
Functions ¶
func CreateUserProfile ¶
func ExitWithError ¶
ExitWithError terminates the program after writing the error to stderr.
func GetAIQueryCIDContent ¶
func GetNetworkAddress ¶
func GetNetworkAddress() string
GetNetworkAddress returns the dial address of the network specified via the network flag. If the network is unknown, it exits with an error.
func ParseAddress ¶
ParseAddress converts the hex representation of an Ethereum address into common.Address. It returns an error if the address is malformed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.