Documentation ¶
Index ¶
- Variables
- type Handle
- func (ca *Handle) Close() error
- func (h *Handle) Issue() error
- func (ca *Handle) Params() mtc.CAParams
- func (h *Handle) Queue(a mtc.Assertion, checksum []byte) error
- func (h *Handle) QueueMultiple(it func(yield func(qa QueuedAssertion) error) error) error
- func (h *Handle) WalkQueue(f func(QueuedAssertion) error) error
- type NewOpts
- type QueuedAssertion
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrChecksumInvalid = errors.New("Invalid checksum") ErrClosed = errors.New("Handle is closed") )
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle for exclusive access to a Merkle Tree CA state.
func (*Handle) Issue ¶
Issue queued assertions into new batch.
Drops batches that fall outside of storage window.
func (*Handle) Queue ¶
Queue assertion for publication.
If checksum is not nil, makes sure assertion matches the checksum.
func (*Handle) QueueMultiple ¶
func (h *Handle) QueueMultiple(it func(yield func(qa QueuedAssertion) error) error) error
Queue multiple assertions for publication.
For each entry, if checksum is not nil, makes sure the assertion matches the checksum
type QueuedAssertion ¶
func (*QueuedAssertion) MarshalBinary ¶
func (a *QueuedAssertion) MarshalBinary() ([]byte, error)
func (*QueuedAssertion) UnmarshalBinary ¶
func (a *QueuedAssertion) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.