Documentation
¶
Index ¶
- Constants
- Variables
- func IsBottomup(from SubnetID, to SubnetID) bool
- type IPCAddress
- type Status
- type SubnetID
- func (s SubnetID) Bytes() []byte
- func (id SubnetID) CommonParent(other SubnetID) (SubnetID, int)
- func (id SubnetID) Down(curr SubnetID) SubnetID
- func (t *SubnetID) MarshalCBOR(w io.Writer) error
- func (id SubnetID) String() string
- func (t *SubnetID) UnmarshalCBOR(r io.Reader) (err error)
- func (id SubnetID) Up(curr SubnetID) SubnetID
Constants ¶
View Source
const ( RootStr = "/root" SubnetSeparator = "/" UndefStr = "" IPCAddrSeparator = ":" )
Variables ¶
View Source
var RootSubnet = SubnetID{ Parent: RootStr, Actor: id0, }
RootSubnet is the ID of the root network
View Source
var UndefIPCAddress = IPCAddress{}
UndefIPCAddress creates a convenient type to define undefined IPC address
View Source
var UndefSubnetID = SubnetID{ Parent: SubnetSeparator, Actor: id0, }
UndefSubnetID is the undef ID
Functions ¶
func IsBottomup ¶
Types ¶
type IPCAddress ¶
type IPCAddress struct {
SubnetID SubnetID
RawAddress address.Address
}
Address adds subnet information to raw Filecoin addresses
func AddressFromString ¶
func AddressFromString(addr string) (IPCAddress, error)
func (*IPCAddress) MarshalCBOR ¶
func (t *IPCAddress) MarshalCBOR(w io.Writer) error
func (*IPCAddress) UnmarshalCBOR ¶
func (t *IPCAddress) UnmarshalCBOR(r io.Reader) (err error)
type SubnetID ¶
type SubnetID struct {
Parent string
Actor address.Address
}
func NewSubnetID ¶
func NewSubnetIDFromString ¶
Click to show internal directories.
Click to hide internal directories.