Documentation ¶
Index ¶
- Variables
- type ADRequest
- type ADResponse
- type AORequest
- type AOResponse
- type BobServer
- func (s *BobServer) AcceptOffer(req *AORequest) (*AOResponse, error)
- func (s *BobServer) AnnounceDeposit(req *ADRequest) (*ADResponse, error)
- func (s *BobServer) Check(now time.Time) error
- func (s *BobServer) EnableFunding(req *EFRequest) (*EFResponse, error)
- func (s *BobServer) Register(maxAge big.Int, ethChain ethereum.Blockchain) error
- func (s *BobServer) Report()
- func (s *BobServer) RequestAdaptorDetails(req *RADRequest) (*RADResponse, error)
- func (s *BobServer) RequestBindingOffer(req *RBORequest) (*RBOResponse, error)
- func (s *BobServer) RequestNonBindingOffer(req *RNBORequest) (*RNBOResponse, error)
- func (s *BobServer) Serve() error
- type Client
- func (c *Client) AcceptOffer(id uuid.UUID, alicePubKey ed25519.PublicKey) (*bob.RefundDetails, error)
- func (c *Client) AnnounceDeposit(id uuid.UUID) error
- func (c *Client) Close() error
- func (c *Client) EnableFunding(id uuid.UUID, aliceRefundNoncePoint ed25519.CurvePoint, refundSigAlice []byte) (*types.TransactionID, error)
- func (c *Client) RequestAdaptorDetails(id uuid.UUID, aliceClaimUnlockHash types.UnlockHash, ...) (*bob.AdaptorDetails, error)
- func (c *Client) RequestBindingOffer(id uuid.UUID, antiSpamID big.Int) (*trader.Offer, error)
- func (c *Client) RequestNonBindingOffer(siacoin types.Currency) (*uuid.UUID, *trader.Offer, error)
- type EFRequest
- type EFResponse
- type JSONCodec
- type RADRequest
- type RADResponse
- type RBORequest
- type RBOResponse
- type RNBORequest
- type RNBOResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ADResponse ¶
type ADResponse struct{}
type AOResponse ¶
type AOResponse struct {
RefundDetails *bob.RefundDetails
}
type BobServer ¶
type BobServer struct {
// contains filtered or unexported fields
}
func NewBobServer ¶
func (*BobServer) AcceptOffer ¶
func (s *BobServer) AcceptOffer(req *AORequest) (*AOResponse, error)
func (*BobServer) AnnounceDeposit ¶
func (s *BobServer) AnnounceDeposit(req *ADRequest) (*ADResponse, error)
func (*BobServer) EnableFunding ¶
func (s *BobServer) EnableFunding(req *EFRequest) (*EFResponse, error)
func (*BobServer) RequestAdaptorDetails ¶
func (s *BobServer) RequestAdaptorDetails(req *RADRequest) (*RADResponse, error)
func (*BobServer) RequestBindingOffer ¶
func (s *BobServer) RequestBindingOffer(req *RBORequest) (*RBOResponse, error)
func (*BobServer) RequestNonBindingOffer ¶
func (s *BobServer) RequestNonBindingOffer(req *RNBORequest) (*RNBOResponse, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AcceptOffer ¶
func (*Client) EnableFunding ¶
func (c *Client) EnableFunding(id uuid.UUID, aliceRefundNoncePoint ed25519.CurvePoint, refundSigAlice []byte) (*types.TransactionID, error)
func (*Client) RequestAdaptorDetails ¶
func (c *Client) RequestAdaptorDetails(id uuid.UUID, aliceClaimUnlockHash types.UnlockHash, aliceClaimNoncePoint ed25519.CurvePoint) (*bob.AdaptorDetails, error)
func (*Client) RequestBindingOffer ¶
type EFRequest ¶
type EFRequest struct { ID uuid.UUID AliceRefundNoncePoint ed25519.CurvePoint RefundSigAlice []byte }
type EFResponse ¶
type EFResponse struct {
TxID *types.TransactionID
}
type RADRequest ¶
type RADRequest struct { ID uuid.UUID AliceClaimUnlockHash types.UnlockHash AliceClaimNoncePoint ed25519.CurvePoint }
type RADResponse ¶
type RADResponse struct {
AdaptorDetails *bob.AdaptorDetails
}
type RBOResponse ¶
type RNBORequest ¶
type Server ¶
type Server interface { RequestNonBindingOffer(*RNBORequest) (*RNBOResponse, error) RequestBindingOffer(req *RBORequest) (*RBOResponse, error) AcceptOffer(req *AORequest) (*AOResponse, error) EnableFunding(req *EFRequest) (*EFResponse, error) RequestAdaptorDetails(req *RADRequest) (*RADResponse, error) AnnounceDeposit(req *ADRequest) (*ADResponse, error) }
Click to show internal directories.
Click to hide internal directories.