room

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyLoaded added in v0.1.5

func AnyLoaded() bool

func Export

func Export(path string, prefix string, legacy bool) (*os.File, error)

Export produces a VCF file containing card entries for all the rooms.

func Load

func Load() error

Load searches the following paths for a `rooms` and/or `hangouts` definition file:

  • $HOME/.denim/
  • $DENIM_HOME/.denim/

func Loaded

func Loaded(source string) bool

Loaded indicates if the room data has been loaded

func Source

func Source() string

Source returns the underlying source of room data

Types

type Room

type Room struct {
	Session
	Name string
}

Room wraps a meeting and provides a name to associate with it.

func All

func All() []Room

All returns a list of all the rooms.

func Find

func Find(identifier string) (Room, error)

Find returns a room that matches the provided identifier (room id or room number).

func (Room) Notes

func (r Room) Notes() string

Notes returns a formated notes portion of the vCard

func (Room) Print

func (r Room) Print(verbose bool) string

Print returns a user-friendly string describing the room.

func (Room) String

func (r Room) String() string

type Session added in v0.1.4

type Session interface {
	ID() string
	Classification() string
	BrowserURL() string
	AppURL() string
	MeetingURL() string
	Phone() string
	SetUser(string)
}

Jump to

Keyboard shortcuts

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