gateway

package
v1.16.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandomBytes = func() []byte {
	buf := make([]byte, 32)
	if _, err := rand.Read(buf); err != nil {
		panic(fmt.Sprintf("init random bytes for address verify failed:%s", err))
	}
	return buf
}()

Functions

This section is empty.

Types

type ComputeProofRequest

type ComputeProofRequest struct {
	SectorInfos []builtin.ExtendedSectorInfo
	Rand        abi.PoStRandomness
	Height      abi.ChainEpoch
	NWVersion   network.Version
}

type ConnectState

type ConnectState struct {
	Addrs        []address.Address
	ChannelID    types.UUID `json:"ChannelId"`
	IP           string     `json:"Ip"`
	RequestCount int
	CreateTime   time.Time
}

type ConnectedCompleted

type ConnectedCompleted struct {
	ChannelId types.UUID // nolint
}

type ConnectionStates

type ConnectionStates struct {
	Connections     []*ConnectState
	ConnectionCount int
}

type HostKey added in v1.13.0

type HostKey string
const (
	HostUnknown  HostKey = ""
	HostMessager HostKey = "MESSAGER"
	HostDroplet  HostKey = "DROPLET"
	HostNode     HostKey = "VENUS"
	HostAuth     HostKey = "AUTH"
	HostMiner    HostKey = "MINER"
	HostGateway  HostKey = "GATEWAY"
)

type MarketConnectionState

type MarketConnectionState struct {
	Addr address.Address
	Conn ConnectionStates
}

type MarketRegisterPolicy

type MarketRegisterPolicy struct {
	Miner address.Address
}

type MinerState

type MinerState struct {
	Connections     []*ConnectState
	ConnectionCount int
}

type ProofRegisterPolicy

type ProofRegisterPolicy struct {
	MinerAddress address.Address
}

type RequestEvent

type RequestEvent struct {
	ID         types.UUID `json:"Id"`
	Method     string
	Payload    []byte
	CreateTime time.Time           `json:"-"`
	Result     chan *ResponseEvent `json:"-"`
}

type ResponseEvent

type ResponseEvent struct {
	ID      types.UUID `json:"Id"`
	Payload []byte
	Error   string
}

type UnsealRequest

type UnsealRequest struct {
	PieceCid cid.Cid
	Miner    address.Address
	Sid      abi.SectorNumber
	Offset   types.UnpaddedByteIndex
	Size     abi.UnpaddedPieceSize
	Dest     string
}

type UnsealState added in v1.12.0

type UnsealState string
const (
	UnsealStateSet       UnsealState = "set_up"
	UnsealStateFinished  UnsealState = "finished"
	UnsealStateFailed    UnsealState = "failed"
	UnsealStateUnsealing UnsealState = "unsealing"
	UnsealStateUploading UnsealState = "uploading"
)

type WalletDetail

type WalletDetail struct {
	Account         string
	SupportAccounts []string
	ConnectStates   []ConnectState
}

type WalletRegisterPolicy

type WalletRegisterPolicy struct {
	SupportAccounts []string
	// a slice byte provide by wallet, using to verify address is really exist
	SignBytes []byte
}

type WalletSignRequest

type WalletSignRequest struct {
	Signer address.Address
	ToSign []byte
	Meta   types.MsgMeta
}

Jump to

Keyboard shortcuts

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