channels

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: 4 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 ChannelInfo

type ChannelInfo struct {
	ID                 string
	Name               string
	IsChannel          bool `json:"is_channel"`
	Created            int
	Creator            string
	IsArchived         bool `json:"is_archived"`
	IsGeneral          bool `json:"is_general"`
	Members            []string
	Topic              TopicPurpose
	Purpose            TopicPurpose
	IsMember           bool    `json:"is_member"`
	LastRead           float64 `json:"last_read,string"`
	Latest             Latest
	UnreadCount        int `json:"unread_count"`
	UnreadCountDisplay int `json:"unread_count_display"`
}

func Info

func Info(id string) (ChannelInfo, error)

func List

func List() ([]ChannelInfo, error)

func (ChannelInfo) String

func (c ChannelInfo) String() string

type Latest

type Latest struct {
	Type string
	User string
	Text string
	TS   float64 `json:",string"`
}

type TopicPurpose

type TopicPurpose struct {
	Value   string
	Creator string
	LastSet int `json:"last_set"`
}

Jump to

Keyboard shortcuts

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