gitter

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID     string    `json:"id"`
	Text   string    `json:"text"`
	HTML   string    `json:"html"`
	Sent   time.Time `json:"sent"`
	From   User      `json:"fromUser"`
	Unread bool      `json:"unread"`
}

func GetMessages

func GetMessages(roomId string, numberOfMessages int, apiToken string) ([]Message, error)

type Room

type Room struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	URI  string `json:"uri"`
}

func GetRoom

func GetRoom(roomUri, apiToken string) (*Room, error)

type Rooms

type Rooms struct {
	Results []Room `json:"results"`
}

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type User

type User struct {
	ID          string `json:"id"`
	Username    string `json:"username"`
	DisplayName string `json:"displayName"`
}

type Widget

type Widget struct {
	view.ScrollableWidget
	// contains filtered or unexported fields
}

A Widget represents a Gitter widget

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget

NewWidget creates a new instance of a widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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