room

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 room definition file:

  • $DENIM_ROOMS (path to a FILE or a URL)
  • $HOME/.denim/rooms
  • $DENIM_HOME/.denim/rooms

func Loaded

func Loaded() 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 {
	Name string
	bluejeans.Meeting
}

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(name string) (Room, error)

Find returns a room that matches the provided name. The name is not case-sensitive.

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

Jump to

Keyboard shortcuts

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