groups

package
v0.0.0-...-70b30f2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Invite

func Invite(channel, user string) error

func Kick

func Kick(channel, user string) error

Types

type GroupInfo

type GroupInfo struct {
	ID                 string
	Name               string
	IsGroup            bool `json:"is_group"`
	Created            int
	Creator            string
	IsArchived         bool `json:"is_archived"`
	IsMpim             bool `json:"is_mpim"`
	Members            []string
	Topic              channels.TopicPurpose
	Purpose            channels.TopicPurpose
	LastRead           float64 `json:"last_read,string"`
	Latest             channels.Latest
	UnreadCount        int `json:"unread_count"`
	UnreadCountDisplay int `json:"unread_count_display"`
}

func Info

func Info(id string) (GroupInfo, error)

func List

func List() ([]GroupInfo, error)

func (GroupInfo) String

func (g GroupInfo) String() string

Jump to

Keyboard shortcuts

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