Documentation
¶
Overview ¶
Copyright © 2019 Annchain Authors <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type TxCache
- func (t *TxCache) DeQueue() types.Txi
- func (c *TxCache) DeQueueBatch(count int) (txs types.Txis, err error)
- func (t *TxCache) EnQueue(tx types.Txi) error
- func (c *TxCache) EnQueueBatch(txs types.Txis) error
- func (t *TxCache) Get(h types2.Hash) types.Txi
- func (t *TxCache) GetHashOrder() types2.Hashes
- func (t *TxCache) GetTop() types.Txi
- func (t *TxCache) Has(h types2.Hash) bool
- func (t *TxCache) Len() int
- func (t *TxCache) Prepend(tx types.Txi) error
- func (c *TxCache) PrependBatch(txs types.Txis) error
- func (t *TxCache) Refresh()
- func (t *TxCache) Remove(h types2.Hash) bool
- func (t *TxCache) RemoveExpiredAndInvalid(allowFailCount int) error
- func (t *TxCache) Sort()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxCache ¶
type TxCache struct {
// contains filtered or unexported fields
}
func NewTxCache ¶
func (*TxCache) DeQueueBatch ¶
func (*TxCache) GetHashOrder ¶
func (*TxCache) RemoveExpiredAndInvalid ¶
Click to show internal directories.
Click to hide internal directories.