slack

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(key string) (*Api, error)

func (*Api) GroupMembers

func (a *Api) GroupMembers(groupName string) ([]string, error)

func (*Api) PostMessage

func (a *Api) PostMessage(channel string, message string) error

func (*Api) UpdateMembers

func (a *Api) UpdateMembers(groupName string, users []string) error

func (*Api) UserMap

func (a *Api) UserMap() (map[string]User, error)

UserMap - returns a map of slack users indexed by email

type User

type User struct {
	Id    string
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

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