gateway

package
v1.2.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: Apache-2.0, MIT Imports: 14 Imported by: 2

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

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
}

func NewIGatewayRPC

func NewIGatewayRPC(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (IGateway, jsonrpc.ClientCloser, error)

NewIGatewayRPC creates a new httpparse jsonrpc remotecli.

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 (*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

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) ListConnectedMiners

func (s *IProofEventStruct) ListConnectedMiners(p0 context.Context) ([]address.Address, error)

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 (s *IWalletEventStruct) AddNewAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error

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 (s *IWalletEventStruct) RemoveAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error

func (*IWalletEventStruct) ResponseWalletEvent

func (s *IWalletEventStruct) ResponseWalletEvent(p0 context.Context, p1 *gtypes.ResponseEvent) error

func (*IWalletEventStruct) SupportNewAccount

func (s *IWalletEventStruct) SupportNewAccount(p0 context.Context, p1 types.UUID, p2 string) error

func (*IWalletEventStruct) WalletHas

func (s *IWalletEventStruct) WalletHas(p0 context.Context, p1 string, p2 address.Address) (bool, error)

func (*IWalletEventStruct) WalletSign

func (s *IWalletEventStruct) WalletSign(p0 context.Context, p1 string, p2 address.Address, p3 []byte, p4 types.MsgMeta) (*crypto.Signature, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL