slack

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: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	ContextVersion string `json:"ctxver"`
	AppUri         string `json:"meeting_api"`
	SlackID        string `json:"meeting_id"`
	SlackPWD       string `json:"meeting_pwd"`
}

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

func New

func New(id string, pwd string) *Slack

New creates a slack from a given id and pwd.

func Parse

func Parse(input string) *Slack

func (Slack) AppURL

func (z Slack) AppURL() string

AppURL returns the same value as the BrowserURL

func (Slack) BrowserURL

func (z Slack) BrowserURL() string

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

func (Slack) Classification

func (z Slack) Classification() string

func (Slack) ID

func (z Slack) ID() string

ID returns the slack id

func (Slack) MeetingURL

func (z Slack) MeetingURL() string

MeetingURL returns the same value as the BrowserURL

func (Slack) PWD

func (z Slack) PWD() string

PWD returns the slack pwd

func (Slack) Phone

func (h Slack) Phone() string

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

func (*Slack) SetUser

func (h *Slack) 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