hangouts

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContextVersion is a fixed value.
	ContextVersion = "1.0.0"

	// HangoutAPI is the URL to the Hangouts page.
	HangoutAPI = "https://hangouts.google.com/call"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hangout

type Hangout struct {
	ContextVersion string `json:"ctxver"`
	HangoutAPI     string `json:"meeting_api"`
	HangoutID      string `json:"meeting_id"`
}

Hangout encapsulates the model that is required to construct a Hangout.

func New

func New(id string) *Hangout

New creates a Hangout from a given id.

func (Hangout) AppURL

func (h Hangout) AppURL() string

AppURL returns the same value as the BrowserURL

func (Hangout) BrowserURL

func (h Hangout) BrowserURL() string

BrowserURL returns a URL that can be used to open a hangout in a browser.

func (Hangout) Classification

func (h Hangout) Classification() string

func (Hangout) ID

func (h Hangout) ID() string

ID returns the Hangout id

func (Hangout) MeetingURL

func (h Hangout) MeetingURL() string

MeetingURL returns the same value as the BrowserURL

func (Hangout) Phone

func (h Hangout) Phone() string

Phone returns an empty string, as Hangouts do not implement a dial-in number

func (*Hangout) SetUser

func (h *Hangout) SetUser(user string)

SetUser does nothing as Hangouts do not support modifying the participant name

Jump to

Keyboard shortcuts

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