nav

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package nav contains the Model, View and Update functions for the main navigator.

Index

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 NewModelBuilder

func NewModelBuilder() *ModelBuilder

NewModelBuilder create a ModelBuilder.

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.

Jump to

Keyboard shortcuts

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