gateway

package
v1.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0, MIT Imports: 13 Imported by: 4

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 = 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.

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 IGatewayStruct

type IGatewayStruct struct {
	IProofEventStruct
	IWalletEventStruct
	IMarketEventStruct

	Internal struct {
		Version func(ctx context.Context) (types.Version, error) `perm:"read"`
	}
}

func (*IGatewayStruct) Version added in v1.7.0

func (s *IGatewayStruct) Version(p0 context.Context) (types.Version, error)

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 (*IMarketClientStruct) ListMarketConnectionsState

func (s *IMarketClientStruct) ListMarketConnectionsState(p0 context.Context) ([]gtypes.MarketConnectionState, error)

func (*IMarketClientStruct) SectorsUnsealPiece

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 (*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 (*IProofClientStruct) ListConnectedMiners

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

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

}

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

func (*IWalletClientStruct) WalletHas

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

func (*IWalletClientStruct) WalletSign

func (s *IWalletClientStruct) WalletSign(p0 context.Context, p1 string, p2 address.Address, p3 []byte, p4 types.MsgMeta) (*crypto.Signature, 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 (s *IWalletServiceProviderStruct) AddNewAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error

func (*IWalletServiceProviderStruct) ListenWalletEvent

func (*IWalletServiceProviderStruct) RemoveAddress

func (s *IWalletServiceProviderStruct) RemoveAddress(p0 context.Context, p1 types.UUID, p2 []address.Address) error

func (*IWalletServiceProviderStruct) ResponseWalletEvent

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

func (*IWalletServiceProviderStruct) SupportNewAccount

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

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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