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 IMarketClient
- type IMarketClientStruct
- func (s *IMarketClientStruct) IsUnsealed(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, ...) (bool, error)
- func (s *IMarketClientStruct) ListMarketConnectionsState(p0 context.Context) ([]gtypes.MarketConnectionState, error)
- func (s *IMarketClientStruct) SectorsUnsealPiece(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, ...) error
- type IMarketEvent
- type IMarketEventStruct
- type IMarketServiceProvider
- type IMarketServiceProviderStruct
- type IProofClient
- type IProofClientStruct
- func (s *IProofClientStruct) ComputeProof(p0 context.Context, p1 address.Address, p2 []builtin.SectorInfo, ...) ([]builtin.PoStProof, error)
- func (s *IProofClientStruct) ListConnectedMiners(p0 context.Context) ([]address.Address, error)
- func (s *IProofClientStruct) ListMinerConnection(p0 context.Context, p1 address.Address) (*gtypes.MinerState, error)
- type IProofEvent
- type IProofEventStruct
- type IProofServiceProvider
- type IProofServiceProviderStruct
- type IWalletClient
- type IWalletClientStruct
- func (s *IWalletClientStruct) ListWalletInfo(p0 context.Context) ([]*gtypes.WalletDetail, error)
- func (s *IWalletClientStruct) ListWalletInfoByWallet(p0 context.Context, p1 string) (*gtypes.WalletDetail, error)
- func (s *IWalletClientStruct) WalletHas(p0 context.Context, p1 string, p2 address.Address) (bool, error)
- func (s *IWalletClientStruct) WalletSign(p0 context.Context, p1 string, p2 address.Address, p3 []byte, p4 types.MsgMeta) (*crypto.Signature, error)
- type IWalletEvent
- type IWalletEventStruct
- type IWalletServiceProvider
- type IWalletServiceProviderStruct
- func (s *IWalletServiceProviderStruct) AddNewAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error
- func (s *IWalletServiceProviderStruct) ListenWalletEvent(p0 context.Context, p1 *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
- func (s *IWalletServiceProviderStruct) RemoveAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error
- func (s *IWalletServiceProviderStruct) ResponseWalletEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
- func (s *IWalletServiceProviderStruct) SupportNewAccount(p0 context.Context, p1 types.UUID, p2 string) error
Constants ¶
View Source
const APINamespace = "gateway.IGateway"
View Source
const MajorVersion = 0
View Source
const MethodNamespace = "Gateway"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGateway ¶
type IGateway interface { IProofEvent IWalletEvent IMarketEvent api.Version }
func DialIGatewayRPC ¶ added in v1.2.2
func DialIGatewayRPC(ctx context.Context, addr string, token string, requestHeader http.Header, opts ...jsonrpc.Option) (IGateway, jsonrpc.ClientCloser, error)
DialIGatewayRPC is a more convinient way of building client, as it resolves any format (url, multiaddr) of addr string.
type IGatewayStruct ¶
type IGatewayStruct struct { IProofEventStruct IWalletEventStruct IMarketEventStruct Internal struct { Version func(ctx context.Context) (types.Version, error) `perm:"read"` } }
type IMarketClient ¶
type IMarketClient 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 }
type IMarketClientStruct ¶
type IMarketClientStruct 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"` 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 (*IMarketClientStruct) IsUnsealed ¶
func (s *IMarketClientStruct) IsUnsealed(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, p4 types.PaddedByteIndex, p5 abi.PaddedPieceSize) (bool, error)
func (*IMarketClientStruct) ListMarketConnectionsState ¶
func (s *IMarketClientStruct) ListMarketConnectionsState(p0 context.Context) ([]gtypes.MarketConnectionState, error)
func (*IMarketClientStruct) SectorsUnsealPiece ¶
func (s *IMarketClientStruct) SectorsUnsealPiece(p0 context.Context, p1 address.Address, p2 cid.Cid, p3 storage.SectorRef, p4 types.PaddedByteIndex, p5 abi.PaddedPieceSize, p6 string) error
type IMarketEvent ¶
type IMarketEvent interface { IMarketClient IMarketServiceProvider }
type IMarketEventStruct ¶
type IMarketEventStruct struct { IMarketClientStruct IMarketServiceProviderStruct }
type IMarketServiceProvider ¶
type IMarketServiceProvider interface { ResponseMarketEvent(ctx context.Context, resp *gtypes.ResponseEvent) error //perm:read ListenMarketEvent(ctx context.Context, policy *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error) //perm:read }
type IMarketServiceProviderStruct ¶
type IMarketServiceProviderStruct struct { Internal struct { 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"` } }
func (*IMarketServiceProviderStruct) ListenMarketEvent ¶
func (s *IMarketServiceProviderStruct) ListenMarketEvent(p0 context.Context, p1 *gtypes.MarketRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IMarketServiceProviderStruct) ResponseMarketEvent ¶
func (s *IMarketServiceProviderStruct) ResponseMarketEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
type IProofClient ¶
type IProofClient 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.SectorInfo, rand abi.PoStRandomness) ([]builtin.PoStProof, error) //perm:admin }
type IProofClientStruct ¶
type IProofClientStruct struct { Internal struct { ComputeProof func(ctx context.Context, miner address.Address, sectorInfos []builtin.SectorInfo, rand abi.PoStRandomness) ([]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"` } }
func (*IProofClientStruct) ComputeProof ¶
func (s *IProofClientStruct) ComputeProof(p0 context.Context, p1 address.Address, p2 []builtin.SectorInfo, p3 abi.PoStRandomness) ([]builtin.PoStProof, error)
func (*IProofClientStruct) ListConnectedMiners ¶
func (*IProofClientStruct) ListMinerConnection ¶
func (s *IProofClientStruct) ListMinerConnection(p0 context.Context, p1 address.Address) (*gtypes.MinerState, error)
type IProofEvent ¶
type IProofEvent interface { IProofClient IProofServiceProvider }
type IProofEventStruct ¶
type IProofEventStruct struct { IProofClientStruct IProofServiceProviderStruct }
type IProofServiceProvider ¶
type IProofServiceProvider interface { ResponseProofEvent(ctx context.Context, resp *gtypes.ResponseEvent) error //perm:read ListenProofEvent(ctx context.Context, policy *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error) //perm:read }
type IProofServiceProviderStruct ¶
type IProofServiceProviderStruct struct { Internal struct { 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 (*IProofServiceProviderStruct) ListenProofEvent ¶
func (s *IProofServiceProviderStruct) ListenProofEvent(p0 context.Context, p1 *gtypes.ProofRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IProofServiceProviderStruct) ResponseProofEvent ¶
func (s *IProofServiceProviderStruct) ResponseProofEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
type IWalletClient ¶
type IWalletClient 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, account 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 }
type IWalletClientStruct ¶
type IWalletClientStruct struct { Internal struct { ListWalletInfo func(ctx context.Context) ([]*gtypes.WalletDetail, error) `perm:"admin"` ListWalletInfoByWallet func(ctx context.Context, wallet string) (*gtypes.WalletDetail, error) `perm:"admin"` WalletHas func(ctx context.Context, account 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 (*IWalletClientStruct) ListWalletInfo ¶
func (s *IWalletClientStruct) ListWalletInfo(p0 context.Context) ([]*gtypes.WalletDetail, error)
func (*IWalletClientStruct) ListWalletInfoByWallet ¶
func (s *IWalletClientStruct) ListWalletInfoByWallet(p0 context.Context, p1 string) (*gtypes.WalletDetail, error)
type IWalletEvent ¶
type IWalletEvent interface { IWalletClient IWalletServiceProvider }
type IWalletEventStruct ¶
type IWalletEventStruct struct { IWalletClientStruct IWalletServiceProviderStruct }
type IWalletServiceProvider ¶
type IWalletServiceProvider interface { 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 IWalletServiceProviderStruct ¶
type IWalletServiceProviderStruct struct { Internal struct { AddNewAddress func(ctx context.Context, channelID types.UUID, newAddrs []address.Address) error `perm:"read"` 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"` } }
func (*IWalletServiceProviderStruct) AddNewAddress ¶
func (*IWalletServiceProviderStruct) ListenWalletEvent ¶
func (s *IWalletServiceProviderStruct) ListenWalletEvent(p0 context.Context, p1 *gtypes.WalletRegisterPolicy) (<-chan *gtypes.RequestEvent, error)
func (*IWalletServiceProviderStruct) RemoveAddress ¶
func (*IWalletServiceProviderStruct) ResponseWalletEvent ¶
func (s *IWalletServiceProviderStruct) ResponseWalletEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error
func (*IWalletServiceProviderStruct) SupportNewAccount ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.