Documentation
¶
Index ¶
- Variables
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)
- func (m *AccountInfo) GetAddress() string
- func (m *AccountInfo) GetBalance() int32
- func (m *AccountInfo) GetIndex() uint32
- func (m *AccountInfo) GetLabel() string
- func (m *AccountInfo) GetNetwork() string
- func (m *AccountInfo) Marshal() (dAtA []byte, err error)
- func (m *AccountInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *AccountInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccountInfo) ProtoMessage()
- func (m *AccountInfo) Reset()
- func (m *AccountInfo) Size() (n int)
- func (m *AccountInfo) String() string
- func (m *AccountInfo) Unmarshal(dAtA []byte) error
- func (m *AccountInfo) XXX_DiscardUnknown()
- func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountInfo) XXX_Merge(src proto.Message)
- func (m *AccountInfo) XXX_Size() int
- func (m *AccountInfo) XXX_Unmarshal(b []byte) error
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)
- func (m *PeerInfo) GetId() string
- func (m *PeerInfo) GetMultiaddr() string
- func (m *PeerInfo) GetName() string
- func (m *PeerInfo) GetPeerId() string
- func (m *PeerInfo) GetType() PeerType
- func (m *PeerInfo) Marshal() (dAtA []byte, err error)
- func (m *PeerInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PeerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeerInfo) ProtoMessage()
- func (m *PeerInfo) Reset()
- func (m *PeerInfo) Size() (n int)
- func (m *PeerInfo) String() string
- func (m *PeerInfo) Unmarshal(dAtA []byte) error
- func (m *PeerInfo) XXX_DiscardUnknown()
- func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerInfo) XXX_Merge(src proto.Message)
- func (m *PeerInfo) XXX_Size() int
- func (m *PeerInfo) XXX_Unmarshal(b []byte) error
- type PeerType
- type WalletInfo
- func (*WalletInfo) Descriptor() ([]byte, []int)
- func (m *WalletInfo) GetAlgorithm() string
- func (m *WalletInfo) GetController() string
- func (m *WalletInfo) GetCreatedAt() int64
- func (m *WalletInfo) GetDiscoveredPaths() []string
- func (m *WalletInfo) GetLastUpdated() int64
- func (m *WalletInfo) Marshal() (dAtA []byte, err error)
- func (m *WalletInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *WalletInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WalletInfo) ProtoMessage()
- func (m *WalletInfo) Reset()
- func (m *WalletInfo) Size() (n int)
- func (m *WalletInfo) String() string
- func (m *WalletInfo) Unmarshal(dAtA []byte) error
- func (m *WalletInfo) XXX_DiscardUnknown()
- func (m *WalletInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletInfo) XXX_Merge(src proto.Message)
- func (m *WalletInfo) XXX_Size() int
- func (m *WalletInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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 PeerType_name = map[int32]string{
0: "UNKNOWN",
1: "HIGHWAY",
2: "MOTOR",
3: "VALIDATOR",
4: "THIRD_PARTY",
}
View Source
var PeerType_value = map[string]int32{
"UNKNOWN": 0,
"HIGHWAY": 1,
"MOTOR": 2,
"VALIDATOR": 3,
"THIRD_PARTY": 4,
}
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct {
// Address is the associated Sonr address.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Credentials is a list of all credentials associated with the account.
Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
// Label is the label of the account.
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
// Index is the index of the account.
Index uint32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
// Balance is the balance of the account.
Balance int32 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"`
}
Account is used for storing all credentials and their locations to be encrypted.
func (*AccountInfo) Descriptor ¶
func (*AccountInfo) Descriptor() ([]byte, []int)
func (*AccountInfo) GetAddress ¶
func (m *AccountInfo) GetAddress() string
func (*AccountInfo) GetBalance ¶
func (m *AccountInfo) GetBalance() int32
func (*AccountInfo) GetIndex ¶
func (m *AccountInfo) GetIndex() uint32
func (*AccountInfo) GetLabel ¶
func (m *AccountInfo) GetLabel() string
func (*AccountInfo) GetNetwork ¶
func (m *AccountInfo) GetNetwork() string
func (*AccountInfo) Marshal ¶
func (m *AccountInfo) Marshal() (dAtA []byte, err error)
func (*AccountInfo) MarshalToSizedBuffer ¶
func (m *AccountInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) Reset ¶
func (m *AccountInfo) Reset()
func (*AccountInfo) Size ¶
func (m *AccountInfo) Size() (n int)
func (*AccountInfo) String ¶
func (m *AccountInfo) String() string
func (*AccountInfo) Unmarshal ¶
func (m *AccountInfo) Unmarshal(dAtA []byte) error
func (*AccountInfo) XXX_DiscardUnknown ¶
func (m *AccountInfo) XXX_DiscardUnknown()
func (*AccountInfo) XXX_Marshal ¶
func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountInfo) XXX_Merge ¶
func (m *AccountInfo) XXX_Merge(src proto.Message)
func (*AccountInfo) XXX_Size ¶
func (m *AccountInfo) XXX_Size() int
func (*AccountInfo) XXX_Unmarshal ¶
func (m *AccountInfo) XXX_Unmarshal(b []byte) error
type PeerInfo ¶
type PeerInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
Multiaddr string `protobuf:"bytes,4,opt,name=multiaddr,proto3" json:"multiaddr,omitempty"`
Type PeerType `protobuf:"varint,5,opt,name=type,proto3,enum=sonrhq.sonr.common.PeerType" json:"type,omitempty"`
}
Basic Info Sent to Peers to Establish Connections
func (*PeerInfo) Descriptor ¶
func (*PeerInfo) GetMultiaddr ¶
func (*PeerInfo) MarshalToSizedBuffer ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) XXX_DiscardUnknown ¶
func (m *PeerInfo) XXX_DiscardUnknown()
func (*PeerInfo) XXX_Marshal ¶
func (*PeerInfo) XXX_Unmarshal ¶
type WalletInfo ¶
type WalletInfo struct {
// Controller is the associated Sonr address.
Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"`
// DiscoverPaths is a list of all known hardened coin type paths.
DiscoveredPaths []string `protobuf:"bytes,2,rep,name=discovered_paths,json=discoveredPaths,proto3" json:"discovered_paths,omitempty"`
// Algorithm is the algorithm of the wallet. CMP is the default.
Algorithm string `protobuf:"bytes,3,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
// CreatedAt is the time the wallet was created.
CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// LastUpdated is the last time the wallet was updated.
LastUpdated int64 `protobuf:"varint,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
}
func (*WalletInfo) Descriptor ¶
func (*WalletInfo) Descriptor() ([]byte, []int)
func (*WalletInfo) GetAlgorithm ¶
func (m *WalletInfo) GetAlgorithm() string
func (*WalletInfo) GetController ¶
func (m *WalletInfo) GetController() string
func (*WalletInfo) GetCreatedAt ¶
func (m *WalletInfo) GetCreatedAt() int64
func (*WalletInfo) GetDiscoveredPaths ¶
func (m *WalletInfo) GetDiscoveredPaths() []string
func (*WalletInfo) GetLastUpdated ¶
func (m *WalletInfo) GetLastUpdated() int64
func (*WalletInfo) Marshal ¶
func (m *WalletInfo) Marshal() (dAtA []byte, err error)
func (*WalletInfo) MarshalToSizedBuffer ¶
func (m *WalletInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WalletInfo) ProtoMessage ¶
func (*WalletInfo) ProtoMessage()
func (*WalletInfo) Reset ¶
func (m *WalletInfo) Reset()
func (*WalletInfo) Size ¶
func (m *WalletInfo) Size() (n int)
func (*WalletInfo) String ¶
func (m *WalletInfo) String() string
func (*WalletInfo) Unmarshal ¶
func (m *WalletInfo) Unmarshal(dAtA []byte) error
func (*WalletInfo) XXX_DiscardUnknown ¶
func (m *WalletInfo) XXX_DiscardUnknown()
func (*WalletInfo) XXX_Marshal ¶
func (m *WalletInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletInfo) XXX_Merge ¶
func (m *WalletInfo) XXX_Merge(src proto.Message)
func (*WalletInfo) XXX_Size ¶
func (m *WalletInfo) XXX_Size() int
func (*WalletInfo) XXX_Unmarshal ¶
func (m *WalletInfo) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.