config

package
v0.0.0-...-88a98bb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MsgBalances from chain to ui with a list of update balances
	MsgBalances = iota
	// MsgDidDoc from chain to ui with a did document (at startup)
	MsgDidDoc
	// MsgChainOfTrust returns the list of verifiable credentials for a DENOM
	MsgChainOfTrust
	// MsgPublicVCs returns the list of verifiable credentials
	MsgPublicVCs
	// MsgPublicVCData returns the details of a verifiable credential
	MsgPublicVCData
	// MsgMarketplaces used for marketplace listing
	MsgMarketplaces
	// MsgMarketplaceData used for details of a marketplace
	MsgMarketplaceData
	// MsgVCs returns the list of verifiable credentials
	MsgVCs
	// MsgVCData returns the details of a verifiable credential
	MsgVCData
	// MsgIssueVC add private verifiable credential to the wallet
	MsgIssueVC
	//MsgContactAdded  used when a new contact si added
	MsgContactAdded
	// MsgUpdateContacts is used when updating all contacts in the list called every 30 seconds
	// is updated by the aries connection data store
	MsgUpdateContacts
	// MsgUpdateContact used when updating a connection by connection ID
	MsgUpdateContact
	// MsgTextReceived used when receiving messages
	MsgTextReceived
	// MsgSendText used to send text messages
	MsgSendText
	// MsgSaveState persist state to the disk
	MsgSaveState
	// MsgCreateInvitation creates an invitation to be used in another aries client
	MsgCreateInvitation
	// MsgHandleInvitation handles a DIDExchange invitation
	MsgHandleInvitation
	// MsgApproveInvitation approves an invitation needed for edge to edge mediator/routing connections
	MsgApproveInvitation
	// MsgApproveRequest approves a request for edge to edge mediator/routing connections
	MsgApproveRequest
	// MsgAddMediator adds a contact as a mediator this enables message routing between edge clients
	MsgAddMediator
	// MsgGetConnectionStatus gets the connection status of a contact
	MsgGetConnectionStatus
	// MsgDIDAddVerificationMethod add a verification method to a DID
	MsgDIDAddVerificationMethod
	// MsgChainAddAddress generate a new address and expose it as a verifiable credential
	MsgChainAddAddress
	// MsgChainGetAddresses retrieve the blockchain addresses from the ssi wallet
	MsgChainGetAddresses
	// MsgSSIAddVC add a vc to the ssi wallet
	MsgSSIAddVC
	// MsgClipboard save stuff into the use clipboard
	MsgClipboard
	// MsgDeleteConnection deletes a connections from the aries agent
	MsgDeleteConnection
	// MsgPaymentRequest receive a payment request
	MsgPaymentRequest
	// MsgClearCredentials clear credentials from the local wallet
	MsgClearCredentials
)

Variables

This section is empty.

Functions

func GetAppConfig

func GetAppConfig(subPath ...string) (cfgPath string, exists bool)

func GetAppData

func GetAppData(subPath ...string) (string, bool)

Types

type AppMsg

type AppMsg struct {
	Typ     int         // message type (see list above)
	Payload interface{} // content of the message, the recipient must know how to process it
}

AppMsg are messages that are exchanged within the app

func NewAppMsg

func NewAppMsg(typ int, payload interface{}) AppMsg

type EdgeConfigSchema

type EdgeConfigSchema struct {
	ControllerName       string `json:"controller_name"`
	ControllerDidID      string `json:"controller_did"`
	NodeURI              string `json:"node_uri"`
	FaucetURL            string `json:"faucet_url"`
	ChainID              string `json:"chain_id"`
	CloudAgentWsURL      string `json:"cloud_agent_ws_url"`
	CloudAgentPublicURL  string `json:"cloud_agent_public_url"`
	CosmosDIDResolverURL string `json:"cosmos_did_resolver_url"`

	// Runtime
	RuntimeMsgs *MsgHub `json:"-"`
}

func NewEdgeConfigSchema

func NewEdgeConfigSchema(controllerName string) EdgeConfigSchema

NewEdgeConfigSchema sensible defaults for configuration

func (EdgeConfigSchema) CloudAgentAPIURL

func (ecs EdgeConfigSchema) CloudAgentAPIURL() string

CloudAgentAPIURL returns the cloud agent mediator did

func (EdgeConfigSchema) ControllerDID

func (ecs EdgeConfigSchema) ControllerDID() string

ControllerDID returns the current user did

func (EdgeConfigSchema) MediatorDID

func (ecs EdgeConfigSchema) MediatorDID() string

MediatorDID returns the cloud agent mediator did

type MsgHub

type MsgHub struct {
	Notification  chan AppMsg
	AgentWalletIn chan AppMsg
	TokenWalletIn chan AppMsg
}

MsgHub contains channels used by the components to send messages to each others

func NewMsgHub

func NewMsgHub() *MsgHub

Jump to

Keyboard shortcuts

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