Documentation ¶
Overview ¶
Package nav contains the Model, View and Update functions for the main navigator.
Index ¶
- type ModelBuilder
- func (b *ModelBuilder) Build(ctx context.Context) tea.Model
- func (b *ModelBuilder) WithAvailableVersion(version string) *ModelBuilder
- func (b *ModelBuilder) WithClient(client deepsquare.Client) *ModelBuilder
- func (b *ModelBuilder) WithMetaschedulerAddress(metaschedulerAddress string) *ModelBuilder
- func (b *ModelBuilder) WithUserAddress(userAddress common.Address) *ModelBuilder
- func (b *ModelBuilder) WithVersion(version string) *ModelBuilder
- func (b *ModelBuilder) WithWatcher(watcher deepsquare.Watcher) *ModelBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelBuilder ¶
type ModelBuilder struct {
// contains filtered or unexported fields
}
ModelBuilder contains the dependencies used to build the bubbletea Model for the navigator.
func (*ModelBuilder) Build ¶
func (b *ModelBuilder) Build(ctx context.Context) tea.Model
Build the bubbletea Model for the navigator.
func (*ModelBuilder) WithAvailableVersion ¶
func (b *ModelBuilder) WithAvailableVersion(version string) *ModelBuilder
WithAvailableVersion sets the available version of the application.
func (*ModelBuilder) WithClient ¶
func (b *ModelBuilder) WithClient(client deepsquare.Client) *ModelBuilder
WithClient sets the DeepSquare Client.
func (*ModelBuilder) WithMetaschedulerAddress ¶
func (b *ModelBuilder) WithMetaschedulerAddress(metaschedulerAddress string) *ModelBuilder
WithMetaschedulerAddress sets the Meta-Scheduler smart-contract address.
func (*ModelBuilder) WithUserAddress ¶
func (b *ModelBuilder) WithUserAddress(userAddress common.Address) *ModelBuilder
WithUserAddress sets the user public address.
func (*ModelBuilder) WithVersion ¶
func (b *ModelBuilder) WithVersion(version string) *ModelBuilder
WithVersion sets the version of the application.
func (*ModelBuilder) WithWatcher ¶
func (b *ModelBuilder) WithWatcher(watcher deepsquare.Watcher) *ModelBuilder
WithWatcher sets the DeepSquare Watcher.
Click to show internal directories.
Click to hide internal directories.