Help us shape the future of Go! Take the 2026 Go Developer Survey

state

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Courses

type Courses struct {
	// contains filtered or unexported fields
}

func NewCourses

func NewCourses(ctx context.Context, client *moodle.Client) (*Courses, error)

func (*Courses) Init

func (*Courses) Init(base.Model) tea.Cmd

func (*Courses) Intermediate

func (c *Courses) Intermediate() bool

func (*Courses) KeyMap

func (c *Courses) KeyMap() help.KeyMap

func (*Courses) Resize

func (c *Courses) Resize(size base.Size)

func (*Courses) Title

func (c *Courses) Title() string

func (*Courses) Update

func (c *Courses) Update(_ base.Model, msg tea.Msg) (cmd tea.Cmd)

func (*Courses) View

func (c *Courses) View(base.Model) string

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(err error) *Error

func (*Error) Init

func (*Error) Init(base.Model) tea.Cmd

func (*Error) Intermediate

func (*Error) Intermediate() bool

func (*Error) KeyMap

func (e *Error) KeyMap() help.KeyMap

func (*Error) Resize

func (*Error) Resize(base.Size)

func (*Error) Title

func (*Error) Title() string

func (*Error) Update

func (e *Error) Update(_ base.Model, msg tea.Msg) tea.Cmd

func (*Error) View

func (e *Error) View(base.Model) string

type Loading

type Loading struct {
	// contains filtered or unexported fields
}

func NewLoading

func NewLoading(message string) *Loading

func (*Loading) Init

func (l *Loading) Init(base.Model) tea.Cmd

func (*Loading) Intermediate

func (*Loading) Intermediate() bool

func (*Loading) KeyMap

func (l *Loading) KeyMap() help.KeyMap

func (*Loading) Resize

func (l *Loading) Resize(base.Size)

func (*Loading) Title

func (*Loading) Title() string

func (*Loading) Update

func (l *Loading) Update(_ base.Model, msg tea.Msg) (cmd tea.Cmd)

func (*Loading) View

func (l *Loading) View(base.Model) string

type Login

type Login struct {
	// contains filtered or unexported fields
}

func NewLogin

func NewLogin() *Login

func (*Login) Client

func (l *Login) Client(m base.Model) (*moodle.Client, error)

func (*Login) Init

func (l *Login) Init(base.Model) tea.Cmd

func (*Login) Intermediate

func (*Login) Intermediate() bool

func (*Login) KeyMap

func (l *Login) KeyMap() help.KeyMap

func (*Login) Resize

func (*Login) Resize(base.Size)

func (*Login) SetEmail

func (l *Login) SetEmail(email string)

func (*Login) SetPassword

func (l *Login) SetPassword(password string)

func (*Login) Title

func (*Login) Title() string

func (*Login) Update

func (l *Login) Update(m base.Model, msg tea.Msg) tea.Cmd

func (*Login) View

func (l *Login) View(base.Model) string

Jump to

Keyboard shortcuts

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