Documentation
¶
Index ¶
- func BroadcastTx(ctx context.Context, tx []byte) (*ctypes.ResultBroadcastTx, error)
- func DeleteRecord(key string) error
- func GetAllDIDs(ctx context.Context) ([]*identitytypes.DidDocument, error)
- func GetAllServices(ctx context.Context) ([]*identitytypes.Service, error)
- func GetDID(ctx context.Context, id string) (*identitytypes.ResolvedDidDocument, error)
- func GetRecord(key string) ([]byte, error)
- func GetService(ctx context.Context, origin string) (*identitytypes.Service, error)
- func InsertRecord(key string, value interface{}) error
- func ListRecords() (map[string][]byte, error)
- type APIEndpoint
- type KeyShareParseResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTx ¶
BroadcastTx broadcasts a transaction to the sonr chain
func DeleteRecord ¶
DeleteRecord deletes a record from the IPFS store for the given controller
func GetAllDIDs ¶
func GetAllDIDs(ctx context.Context) ([]*identitytypes.DidDocument, error)
GetAllDIDs returns all DID documents
func GetAllServices ¶
func GetAllServices(ctx context.Context) ([]*identitytypes.Service, error)
GetAllServices returns all services
func GetDID ¶
func GetDID(ctx context.Context, id string) (*identitytypes.ResolvedDidDocument, error)
GetDID returns the DID document with the given id
func GetService ¶
GetService returns the service with the given id
func InsertRecord ¶
InsertRecord inserts a record into the IPFS store for the given controller
func ListRecords ¶
ListRecords lists all records in the IPFS store for the given controller
Types ¶
type APIEndpoint ¶
type APIEndpoint string
const ( // List of known origin api endpoints. SonrLocalRpcOrigin APIEndpoint = "localhost:9090" SonrPublicRpcOrigin APIEndpoint = "142.93.116.204:9090" )
func (APIEndpoint) TcpAddress ¶
func (e APIEndpoint) TcpAddress() string
type KeyShareParseResult ¶
type KeyShareParseResult struct {
}
Click to show internal directories.
Click to hide internal directories.