info

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBio

func GetBio(cc *client.Client) tea.Cmd

GetBio fetches the authenticated user's bio.

Types

type GotBioMsg

type GotBioMsg *charm.User

GotBioMsg is sent when we've successfully fetched the user's bio. It contains the user's profile data.

type Model

type Model struct {
	Quit bool // signals it's time to exit the whole application
	Err  error
	User *charm.User
	// contains filtered or unexported fields
}

Model stores the state of the info user interface.

func NewModel

func NewModel(cc *client.Client) Model

NewModel returns a new Model in its initial state.

func Update

func Update(msg tea.Msg, m Model) (Model, tea.Cmd)

Update is the Bubble Tea update loop.

func (Model) View added in v0.9.0

func (m Model) View() string

View renders the current view from the model.

Jump to

Keyboard shortcuts

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