Versions in this module Expand all Collapse all v1 v1.1.3 Sep 20, 2021 v1.1.2 Sep 20, 2021 Changes in this version + const Subsystem + var ErrAcctResNotCompleted = errors.New("account reservation not completed") + var ErrAuthCanceled = errors.New("authentication was canceled") + var ErrBatchNotFinalized = errors.New("batch snapshot not found") + var ErrClientShutdown = errors.New("client shutting down") + var ErrServerErrored = errors.New("server sent unexpected error") + var ErrServerShutdown = errors.New("server shutting down") + func MarshallNodeTier(nodeTier order.NodeTier) (auctioneerrpc.NodeTier, error) + func UseLogger(logger btclog.Logger) + type AcctResNotCompletedError struct + AcctKey [33]byte + AuctioneerKey [33]byte + Expiry uint32 + HeightHint uint32 + InitialBatchKey [33]byte + Value btcutil.Amount + func AcctResNotCompletedErrFromRPC(rpcAcc *auctioneerrpc.AuctionAccount) *AcctResNotCompletedError + func (e *AcctResNotCompletedError) Error() string + func (e *AcctResNotCompletedError) Unwrap() error + type BatchCleaner interface + DeletePendingBatch func() error + RemovePendingBatchArtifacts func(matchedOrders map[order.Nonce][]*order.MatchedOrder, batchTx *wire.MsgTx) error + type BatchSource interface + PendingBatchSnapshot func() (*clientdb.LocalBatchSnapshot, error) + type Client struct + FromServerChan chan *auctioneerrpc.ServerAuctionMessage + StreamErrChan chan error + func NewClient(cfg *Config) (*Client, error) + func (c *Client) BatchSnapshot(ctx context.Context, targetBatch order.BatchID) (*auctioneerrpc.BatchSnapshotResponse, error) + func (c *Client) BatchSnapshots(ctx context.Context, req *auctioneerrpc.BatchSnapshotsRequest) (*auctioneerrpc.BatchSnapshotsResponse, error) + func (c *Client) CancelOrder(ctx context.Context, noncePreimage lntypes.Preimage) error + func (c *Client) DelAcctMailbox(ctx context.Context, sid [64]byte, acctKey *keychain.KeyDescriptor) error + func (c *Client) DelSidecarMailbox(ctx context.Context, streamID [64]byte, ticket *sidecar.Ticket) error + func (c *Client) HandleServerShutdown(err error) error + func (c *Client) InitAccount(ctx context.Context, account *account.Account) error + func (c *Client) InitAccountCipherBox(ctx context.Context, sid [64]byte, acctKey *keychain.KeyDescriptor) error + func (c *Client) InitTicketCipherBox(ctx context.Context, sid [64]byte, ticket *sidecar.Ticket) error + func (c *Client) IsSubscribed() bool + func (c *Client) MarketInfo(ctx context.Context) (*auctioneerrpc.MarketInfoResponse, error) + func (c *Client) ModifyAccount(ctx context.Context, account *account.Account, inputs []*wire.TxIn, ...) ([]byte, error) + func (c *Client) NodeRating(ctx context.Context, nodeKeys ...*btcec.PublicKey) (*poolrpc.NodeRatingResponse, error) + func (c *Client) OrderState(ctx context.Context, nonce order.Nonce) (*auctioneerrpc.ServerOrderStateResponse, error) + func (c *Client) RecoverAccounts(ctx context.Context, accountKeys []*keychain.KeyDescriptor) ([]*account.Account, error) + func (c *Client) RecvCipherBoxMsg(ctx context.Context, sid [64]byte) ([]byte, error) + func (c *Client) ReserveAccount(ctx context.Context, value btcutil.Amount, expiry uint32, ...) (*account.Reservation, error) + func (c *Client) SendAuctionMessage(msg *auctioneerrpc.ClientAuctionMessage) error + func (c *Client) SendCipherBoxMsg(ctx context.Context, sid [64]byte, msg []byte) error + func (c *Client) Start() error + func (c *Client) StartAccountSubscription(ctx context.Context, acctKey *keychain.KeyDescriptor) error + func (c *Client) Stop() error + func (c *Client) SubmitOrder(ctx context.Context, o order.Order, serverParams *order.ServerOrderParams) error + func (c *Client) Terms(ctx context.Context) (*terms.AuctioneerTerms, error) + type Config struct + BatchCleaner BatchCleaner + BatchSource BatchSource + ConnectSidecar bool + DialOpts []grpc.DialOption + GenUserAgent func(context.Context) string + Insecure bool + MaxBackoff time.Duration + MinBackoff time.Duration + ProxyAddress string + ServerAddress string + Signer lndclient.SignerClient + TLSPathServer string + type ErrChanSwitch struct + func NewErrChanSwitch(mainChan chan<- error) *ErrChanSwitch + func (s *ErrChanSwitch) Divert(tempChan chan<- error) + func (s *ErrChanSwitch) ErrChan() chan<- error + func (s *ErrChanSwitch) Restore() + func (s *ErrChanSwitch) Start() + func (s *ErrChanSwitch) Stop()