model

package
v0.0.0-...-da4884c Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpoint

type Checkpoint struct {
	*log.Checkpoint
	Note *note.Note
	Raw  []byte
}

type Leaf

type Leaf struct {
	Contents []byte
	Index    uint64
}

type ViewModel

type ViewModel struct {
	Dirty chan bool
	// contains filtered or unexported fields
}

func NewViewModel

func NewViewModel(logOrigins []string) *ViewModel

func (*ViewModel) GetCheckpoint

func (m *ViewModel) GetCheckpoint() *Checkpoint

func (*ViewModel) GetError

func (m *ViewModel) GetError() error

func (*ViewModel) GetLeaf

func (m *ViewModel) GetLeaf() Leaf

func (*ViewModel) GetLogOrigins

func (m *ViewModel) GetLogOrigins() []string

func (*ViewModel) GetWitnessN

func (m *ViewModel) GetWitnessN() uint

func (*ViewModel) GetWitnessed

func (m *ViewModel) GetWitnessed() *Checkpoint

func (*ViewModel) SetCheckpoint

func (m *ViewModel) SetCheckpoint(cp *Checkpoint, witnessedCP *Checkpoint, err error)

func (*ViewModel) SetLeaf

func (m *ViewModel) SetLeaf(leaf Leaf, err error)

func (*ViewModel) SetWitnessN

func (m *ViewModel) SetWitnessN(n uint)

Jump to

Keyboard shortcuts

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