Documentation ¶
Overview ¶
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen. DO NOT EDIT.
Code generated by github.com/filecoin-project/venus/venus-devtool/api-gen. DO NOT EDIT.
Index ¶
- Constants
- type IGateway
- type IGatewayStruct
- type IMarketEvent
- type IMarketEventStruct
- func (s *IMarketEventStruct) IsUnsealed(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, ...) (bool, error)
- func (s *IMarketEventStruct) ListMarketConnectionsState(p0 context.Context) ([]gtypes.MarketConnectionState, error)
- func (s *IMarketEventStruct) ListenMarketEvent(p0 context.Context, p1 *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
- func (s *IMarketEventStruct) ResponseMarketEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
- func (s *IMarketEventStruct) SectorsUnsealPiece(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, ...) error
- type IProofEvent
- type IProofEventStruct
- func (s *IProofEventStruct) ComputeProof(p0 context.Context, p1 address.Address, p2 []builtin.ExtendedSectorInfo, ...) ([]builtin.PoStProof, error)
- func (s *IProofEventStruct) ListConnectedMiners(p0 context.Context) ([]address.Address, error)
- func (s *IProofEventStruct) ListMinerConnection(p0 context.Context, p1 address.Address) (*gtypes.MinerState, error)
- func (s *IProofEventStruct) ListenProofEvent(p0 context.Context, p1 *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
- func (s *IProofEventStruct) ResponseProofEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
- type IWalletEvent
- type IWalletEventStruct
- func (s *IWalletEventStruct) AddNewAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error
- func (s *IWalletEventStruct) ListWalletInfo(p0 context.Context) ([]*gtypes.WalletDetail, error)
- func (s *IWalletEventStruct) ListWalletInfoByWallet(p0 context.Context, p1 string) (*gtypes.WalletDetail, error)
- func (s *IWalletEventStruct) ListenWalletEvent(p0 context.Context, p1 *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
- func (s *IWalletEventStruct) RemoveAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error
- func (s *IWalletEventStruct) ResponseWalletEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
- func (s *IWalletEventStruct) SupportNewAccount(p0 context.Context, p1 types.UUID, p2 string) error
- func (s *IWalletEventStruct) WalletHas(p0 context.Context, p1 string, p2 address.Address) (bool, error)
- func (s *IWalletEventStruct) WalletSign(p0 context.Context, p1 string, p2 address.Address, p3 []byte, p4 types.MsgMeta) (*crypto.Signature, error)
Constants ¶
View Source
const APINamespace = "gateway.IGateway"
View Source
const MajorVersion = 1
View Source
const MethodNamespace = "Gateway"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGateway ¶
type IGateway interface { IProofEvent IWalletEvent IMarketEvent }
type IGatewayStruct ¶
type IGatewayStruct struct { IProofEventStruct IWalletEventStruct IMarketEventStruct }
type IMarketEvent ¶
type IMarketEvent interface { ListMarketConnectionsState(ctx context.Context) ([]gtypes.MarketConnectionState, error) //perm:admin IsUnsealed(ctx context.Context, miner address.Address, pieceCid cid.Cid, sector storage.SectorRef, offset types.PaddedByteIndex, size abi.PaddedPieceSize) (bool, error) //perm:admin SectorsUnsealPiece(ctx context.Context, miner address.Address, pieceCid cid.Cid, sector storage.SectorRef, offset types.PaddedByteIndex, size abi.PaddedPieceSize, dest string) error //perm:admin ResponseMarketEvent(ctx context.Context, resp *gtypes.ResponseEvent) error //perm:read ListenMarketEvent(ctx context.Context, policy *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error) //perm:read }
type IMarketEventStruct ¶
type IMarketEventStruct struct { Internal struct { IsUnsealed func(ctx context.Context, miner address.Address, pieceCid cid.Cid, sector storage.SectorRef, offset types.PaddedByteIndex, size abi.PaddedPieceSize) (bool, error) `perm:"admin"` ListMarketConnectionsState func(ctx context.Context) ([]gtypes.MarketConnectionState, error) `perm:"admin"` ListenMarketEvent func(ctx context.Context, policy *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error) `perm:"read"` ResponseMarketEvent func(ctx context.Context, resp *gtypes.ResponseEvent) error `perm:"read"` SectorsUnsealPiece func(ctx context.Context, miner address.Address, pieceCid cid.Cid, sector storage.SectorRef, offset types.PaddedByteIndex, size abi.PaddedPieceSize, dest string) error `perm:"admin"` } }
func (*IMarketEventStruct) IsUnsealed ¶
func (s *IMarketEventStruct) IsUnsealed(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, p4 types.PaddedByteIndex, p5 abi.PaddedPieceSize) (bool, error)
func (*IMarketEventStruct) ListMarketConnectionsState ¶
func (s *IMarketEventStruct) ListMarketConnectionsState(p0 context.Context) ([]gtypes.MarketConnectionState, error)
func (*IMarketEventStruct) ListenMarketEvent ¶
func (s *IMarketEventStruct) ListenMarketEvent(p0 context.Context, p1 *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IMarketEventStruct) ResponseMarketEvent ¶
func (s *IMarketEventStruct) ResponseMarketEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
func (*IMarketEventStruct) SectorsUnsealPiece ¶
func (s *IMarketEventStruct) SectorsUnsealPiece(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, p4 types.PaddedByteIndex, p5 abi.PaddedPieceSize, p6 string) error
type IProofEvent ¶
type IProofEvent interface { ListConnectedMiners(ctx context.Context) ([]address.Address, error) //perm:admin ListMinerConnection(ctx context.Context, addr address.Address) (*gtypes.MinerState, error) //perm:admin ComputeProof(ctx context.Context, miner address.Address, sectorInfos []builtin.ExtendedSectorInfo, rand abi.PoStRandomness, height abi.ChainEpoch, nwVersion network.Version) ([]builtin.PoStProof, error) //perm:admin ResponseProofEvent(ctx context.Context, resp *gtypes.ResponseEvent) error //perm:read ListenProofEvent(ctx context.Context, policy *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error) //perm:read }
type IProofEventStruct ¶
type IProofEventStruct struct { Internal struct { ComputeProof func(ctx context.Context, miner address.Address, sectorInfos []builtin.ExtendedSectorInfo, rand abi.PoStRandomness, height abi.ChainEpoch, nwVersion network.Version) ([]builtin.PoStProof, error) `perm:"admin"` ListConnectedMiners func(ctx context.Context) ([]address.Address, error) `perm:"admin"` ListMinerConnection func(ctx context.Context, addr address.Address) (*gtypes.MinerState, error) `perm:"admin"` ListenProofEvent func(ctx context.Context, policy *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error) `perm:"read"` ResponseProofEvent func(ctx context.Context, resp *gtypes.ResponseEvent) error `perm:"read"` } }
func (*IProofEventStruct) ComputeProof ¶
func (s *IProofEventStruct) ComputeProof(p0 context.Context, p1 address.Address, p2 []builtin.ExtendedSectorInfo, p3 abi.PoStRandomness, p4 abi.ChainEpoch, p5 network.Version) ([]builtin.PoStProof, error)
func (*IProofEventStruct) ListConnectedMiners ¶
func (*IProofEventStruct) ListMinerConnection ¶
func (s *IProofEventStruct) ListMinerConnection(p0 context.Context, p1 address.Address) (*gtypes.MinerState, error)
func (*IProofEventStruct) ListenProofEvent ¶
func (s *IProofEventStruct) ListenProofEvent(p0 context.Context, p1 *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IProofEventStruct) ResponseProofEvent ¶
func (s *IProofEventStruct) ResponseProofEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
type IWalletEvent ¶
type IWalletEvent interface { ListWalletInfo(ctx context.Context) ([]*gtypes.WalletDetail, error) //perm:admin ListWalletInfoByWallet(ctx context.Context, wallet string) (*gtypes.WalletDetail, error) //perm:admin WalletHas(ctx context.Context, supportAccount string, addr address.Address) (bool, error) //perm:admin WalletSign(ctx context.Context, account string, addr address.Address, toSign []byte, meta types.MsgMeta) (*crypto.Signature, error) //perm:admin ResponseWalletEvent(ctx context.Context, resp *gtypes.ResponseEvent) error //perm:read ListenWalletEvent(ctx context.Context, policy *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error) //perm:read SupportNewAccount(ctx context.Context, channelID types.UUID, account string) error //perm:read AddNewAddress(ctx context.Context, channelID types.UUID, newAddrs []address.Address) error //perm:read RemoveAddress(ctx context.Context, channelID types.UUID, newAddrs []address.Address) error //perm:read }
type IWalletEventStruct ¶
type IWalletEventStruct struct { Internal struct { AddNewAddress func(ctx context.Context, channelID types.UUID, newAddrs []address.Address) error `perm:"read"` ListWalletInfo func(ctx context.Context) ([]*gtypes.WalletDetail, error) `perm:"admin"` ListWalletInfoByWallet func(ctx context.Context, wallet string) (*gtypes.WalletDetail, error) `perm:"admin"` ListenWalletEvent func(ctx context.Context, policy *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error) `perm:"read"` RemoveAddress func(ctx context.Context, channelID types.UUID, newAddrs []address.Address) error `perm:"read"` ResponseWalletEvent func(ctx context.Context, resp *gtypes.ResponseEvent) error `perm:"read"` SupportNewAccount func(ctx context.Context, channelID types.UUID, account string) error `perm:"read"` WalletHas func(ctx context.Context, supportAccount string, addr address.Address) (bool, error) `perm:"admin"` WalletSign func(ctx context.Context, account string, addr address.Address, toSign []byte, meta types.MsgMeta) (*crypto.Signature, error) `perm:"admin"` } }
func (*IWalletEventStruct) AddNewAddress ¶
func (*IWalletEventStruct) ListWalletInfo ¶
func (s *IWalletEventStruct) ListWalletInfo(p0 context.Context) ([]*gtypes.WalletDetail, error)
func (*IWalletEventStruct) ListWalletInfoByWallet ¶
func (s *IWalletEventStruct) ListWalletInfoByWallet(p0 context.Context, p1 string) (*gtypes.WalletDetail, error)
func (*IWalletEventStruct) ListenWalletEvent ¶
func (s *IWalletEventStruct) ListenWalletEvent(p0 context.Context, p1 *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IWalletEventStruct) RemoveAddress ¶
func (*IWalletEventStruct) ResponseWalletEvent ¶
func (s *IWalletEventStruct) ResponseWalletEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
func (*IWalletEventStruct) SupportNewAccount ¶
Click to show internal directories.
Click to hide internal directories.