Documentation ¶
Index ¶
- Constants
- Variables
- type AuthInfo
- func (*AuthInfo) Descriptor() ([]byte, []int)
- func (m *AuthInfo) GetAddress() string
- func (m *AuthInfo) GetAesDscKey() []byte
- func (m *AuthInfo) GetAesPskKey() []byte
- func (m *AuthInfo) GetDid() string
- func (m *AuthInfo) GetPassword() string
- func (m *AuthInfo) GetTimestamp() int64
- func (m *AuthInfo) Marshal() (dAtA []byte, err error)
- func (m *AuthInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthInfo) ProtoMessage()
- func (m *AuthInfo) Reset()
- func (m *AuthInfo) Size() (n int)
- func (m *AuthInfo) String() string
- func (m *AuthInfo) Unmarshal(dAtA []byte) error
- func (m *AuthInfo) XXX_DiscardUnknown()
- func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthInfo) XXX_Merge(src proto.Message)
- func (m *AuthInfo) XXX_Size() int
- func (m *AuthInfo) XXX_Unmarshal(b []byte) error
- type BlockchainModule
- type EntityKind
- type IpnsEntry
- func (*IpnsEntry) Descriptor() ([]byte, []int)
- func (m *IpnsEntry) GetPubKey() []byte
- func (m *IpnsEntry) GetSequence() uint64
- func (m *IpnsEntry) GetSignature() []byte
- func (m *IpnsEntry) GetTtl() uint64
- func (m *IpnsEntry) GetValidity() []byte
- func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
- func (m *IpnsEntry) GetValue() []byte
- func (m *IpnsEntry) Marshal() (dAtA []byte, err error)
- func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IpnsEntry) ProtoMessage()
- func (m *IpnsEntry) Reset()
- func (m *IpnsEntry) Size() (n int)
- func (m *IpnsEntry) String() string
- func (m *IpnsEntry) Unmarshal(dAtA []byte) error
- func (m *IpnsEntry) XXX_DiscardUnknown()
- func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpnsEntry) XXX_Merge(src proto.Message)
- func (m *IpnsEntry) XXX_Size() int
- func (m *IpnsEntry) XXX_Unmarshal(b []byte) error
- type IpnsEntry_ValidityType
- type MotorCallback
- type MotorCallbackMessage
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetDid() string
- func (m *Peer) GetPeerId() string
- func (m *Peer) GetStatus() Peer_Status
- func (m *Peer) Marshal() (dAtA []byte, err error)
- func (m *Peer) MarshalTo(dAtA []byte) (int, error)
- func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) Size() (n int)
- func (m *Peer) String() string
- func (m *Peer) Unmarshal(dAtA []byte) error
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Peer_Status
Constants ¶
View Source
const ( // ON_REFRESH is an event type for when the LobbyProtocol is refreshed ON_REFRESH = events.EventName("on_refresh") // ON_MAILBOX is an event type for when the MailboxProtocol receives a MailboxEvent ON_MAILBOX = events.EventName("on_mailbox") // ON_INVITE is an event type for when the TransferProtocol receives InviteEvent ON_INVITE = events.EventName("on_invite") // ON_DECISION is an event type for when the TransferProtocol receives a DecisionEvent ON_DECISION = events.EventName("on_decision") // ON_PROGRESS is an event type for when the TransferProtocol sends or receives a ProgressEvent ON_PROGRESS = events.EventName("on_progress") // ON_COMPLETE is an event type for when the TransferProtocol completes a transfer and pushes a CompleteEvent ON_COMPLETE = events.EventName("on_complete") )
Variables ¶
View Source
var ( ErrRequestBody = errors.New("provided HTTP request body is empty or invalid") // Path Manipulation Errors ErrDuplicateFilePathOption = errors.New("duplicate file path option") ErrPrefixSuffixSetWithReplace = errors.New("prefix or Suffix set with Replace") ErrSeparatorLength = errors.New("separator length must be 1") ErrNoFileNameSet = errors.New("file name was not set by options") // Device ID Errors ErrEmptyDeviceID = errors.New("device ID cannot be empty") ErrMissingEnvVar = errors.New("cannot set EnvVariable with empty value") // Directory errors ErrDirectoryInvalid = errors.New("directory Type is invalid") ErrDirectoryUnset = errors.New("directory path has not been set") ErrDirectoryJoin = errors.New("failed to join directory path") // Node Errors ErrEmptyQueue = errors.New("no items in Transfer Queue") ErrInvalidQuery = errors.New("no SName or PeerID provided") ErrMissingParam = errors.New("paramater is missing") ErrProtocolsNotSet = errors.New("node Protocol has not been initialized") ErrRoutingNotSet = errors.New("DHT and Host have not been set by Routing Function") ErrListenerRequired = errors.New("listener was not Provided") ErrMDNSInvalidConn = errors.New("invalid Connection, cannot begin MDNS Service") ErrMotorWalletNotInitialized = errors.New("motor Wallet is not initialized") )
View Source
var ( ErrInvalidLengthInfo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInfo = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInfo = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthIpns = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIpns = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIpns = fmt.Errorf("proto: unexpected end of group") )
View Source
var BlockchainModule_name = map[int32]string{
0: "REGISTRY",
1: "SCHEMA",
2: "BUCKET",
}
View Source
var BlockchainModule_value = map[string]int32{
"REGISTRY": 0,
"SCHEMA": 1,
"BUCKET": 2,
}
View Source
var EntityKind_name = map[int32]string{
0: "ADDRESS",
1: "DID",
2: "CID",
}
View Source
var EntityKind_value = map[string]int32{
"ADDRESS": 0,
"DID": 1,
"CID": 2,
}
View Source
var IpnsEntry_ValidityType_name = map[int32]string{
0: "EOL",
}
View Source
var IpnsEntry_ValidityType_value = map[string]int32{
"EOL": 0,
}
View Source
var MotorCallbackMessage_name = map[int32]string{
0: "MTR_INIT",
1: "MTR_FAUCET_RECEIVED",
2: "MTR_SHARDS_CREATED",
3: "MTR_VAULT_CREATED",
4: "MTR_ACCOUNT_CREATED",
5: "MTR_LOGGED_IN",
}
View Source
var MotorCallbackMessage_value = map[string]int32{
"MTR_INIT": 0,
"MTR_FAUCET_RECEIVED": 1,
"MTR_SHARDS_CREATED": 2,
"MTR_VAULT_CREATED": 3,
"MTR_ACCOUNT_CREATED": 4,
"MTR_LOGGED_IN": 5,
}
View Source
var Peer_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_ONLINE",
2: "STATUS_AWAY",
3: "STATUS_BUSY",
}
View Source
var Peer_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_ONLINE": 1,
"STATUS_AWAY": 2,
"STATUS_BUSY": 3,
}
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶ added in v0.3.12
type AuthInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` AesDscKey []byte `protobuf:"bytes,3,opt,name=aes_dsc_key,json=aesDscKey,proto3" json:"aes_dsc_key,omitempty"` AesPskKey []byte `protobuf:"bytes,4,opt,name=aes_psk_key,json=aesPskKey,proto3" json:"aes_psk_key,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
AuthInfo is a object used by Motor clients to store authentication information in Biometric storage
func (*AuthInfo) Descriptor ¶ added in v0.3.12
func (*AuthInfo) GetAddress ¶ added in v0.3.12
func (*AuthInfo) GetAesDscKey ¶ added in v0.3.12
func (*AuthInfo) GetAesPskKey ¶ added in v0.3.12
func (*AuthInfo) GetPassword ¶ added in v0.3.12
func (*AuthInfo) GetTimestamp ¶ added in v0.3.12
func (*AuthInfo) MarshalToSizedBuffer ¶ added in v0.3.12
func (*AuthInfo) ProtoMessage ¶ added in v0.3.12
func (*AuthInfo) ProtoMessage()
func (*AuthInfo) XXX_DiscardUnknown ¶ added in v0.3.12
func (m *AuthInfo) XXX_DiscardUnknown()
func (*AuthInfo) XXX_Marshal ¶ added in v0.3.12
func (*AuthInfo) XXX_Unmarshal ¶ added in v0.3.12
type BlockchainModule ¶
type BlockchainModule int32
const ( // Query x/registry module BlockchainModule_REGISTRY BlockchainModule = 0 // Query x/schema module BlockchainModule_SCHEMA BlockchainModule = 1 // Query x/bucket module BlockchainModule_BUCKET BlockchainModule = 2 )
func (BlockchainModule) EnumDescriptor ¶
func (BlockchainModule) EnumDescriptor() ([]byte, []int)
func (BlockchainModule) String ¶
func (x BlockchainModule) String() string
type EntityKind ¶
type EntityKind int32
const ( EntityKind_ADDRESS EntityKind = 0 EntityKind_DID EntityKind = 1 EntityKind_CID EntityKind = 2 )
func (EntityKind) EnumDescriptor ¶
func (EntityKind) EnumDescriptor() ([]byte, []int)
func (EntityKind) String ¶
func (x EntityKind) String() string
type IpnsEntry ¶
type IpnsEntry struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` ValidityType IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,proto3,enum=sonrio.common.v1.IpnsEntry_ValidityType" json:"validityType,omitempty"` Validity []byte `protobuf:"bytes,4,opt,name=validity,proto3" json:"validity,omitempty"` Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` Ttl uint64 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"` PubKey []byte `protobuf:"bytes,7,opt,name=pubKey,proto3" json:"pubKey,omitempty"` }
func (*IpnsEntry) Descriptor ¶
func (*IpnsEntry) GetSequence ¶
func (*IpnsEntry) GetSignature ¶
func (*IpnsEntry) GetValidity ¶
func (*IpnsEntry) GetValidityType ¶
func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
func (*IpnsEntry) MarshalToSizedBuffer ¶
func (*IpnsEntry) ProtoMessage ¶
func (*IpnsEntry) ProtoMessage()
func (*IpnsEntry) XXX_DiscardUnknown ¶
func (m *IpnsEntry) XXX_DiscardUnknown()
func (*IpnsEntry) XXX_Marshal ¶
func (*IpnsEntry) XXX_Unmarshal ¶
type IpnsEntry_ValidityType ¶
type IpnsEntry_ValidityType int32
const ( // setting an EOL says "this record is valid until..." IpnsEntry_EOL IpnsEntry_ValidityType = 0 )
func (IpnsEntry_ValidityType) EnumDescriptor ¶
func (IpnsEntry_ValidityType) EnumDescriptor() ([]byte, []int)
func (IpnsEntry_ValidityType) String ¶
func (x IpnsEntry_ValidityType) String() string
type MotorCallback ¶
type MotorCallback interface {
OnDiscover(data []byte)
}
func DefaultCallback ¶
func DefaultCallback() MotorCallback
type MotorCallbackMessage ¶ added in v0.3.12
type MotorCallbackMessage int32
const ( MotorCallbackMessage_MTR_INIT MotorCallbackMessage = 0 MotorCallbackMessage_MTR_FAUCET_RECEIVED MotorCallbackMessage = 1 MotorCallbackMessage_MTR_SHARDS_CREATED MotorCallbackMessage = 2 MotorCallbackMessage_MTR_VAULT_CREATED MotorCallbackMessage = 3 MotorCallbackMessage_MTR_ACCOUNT_CREATED MotorCallbackMessage = 4 MotorCallbackMessage_MTR_LOGGED_IN MotorCallbackMessage = 5 )
func (MotorCallbackMessage) EnumDescriptor ¶ added in v0.3.12
func (MotorCallbackMessage) EnumDescriptor() ([]byte, []int)
func (MotorCallbackMessage) String ¶ added in v0.3.12
func (x MotorCallbackMessage) String() string
type Peer ¶
type Peer struct { PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` Status Peer_Status `protobuf:"varint,3,opt,name=status,proto3,enum=sonrio.common.v1.Peer_Status" json:"status,omitempty"` }
Basic Info Sent to Peers to Establish Connections
func (*Peer) Descriptor ¶
func (*Peer) GetStatus ¶
func (m *Peer) GetStatus() Peer_Status
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Peer_Status ¶
type Peer_Status int32
Peers Active Status
const ( Peer_STATUS_UNSPECIFIED Peer_Status = 0 Peer_STATUS_ONLINE Peer_Status = 1 Peer_STATUS_AWAY Peer_Status = 2 Peer_STATUS_BUSY Peer_Status = 3 )
func (Peer_Status) EnumDescriptor ¶
func (Peer_Status) EnumDescriptor() ([]byte, []int)
func (Peer_Status) String ¶
func (x Peer_Status) String() string
Click to show internal directories.
Click to hide internal directories.