slack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	Client *slack.Client
}

func New

func New(token string) (*Slack, error)

func (*Slack) GetUserByEmail

func (a *Slack) GetUserByEmail(email string) (*slack.User, error)

func (*Slack) IsUserMemberOfGroup

func (a *Slack) IsUserMemberOfGroup(user *slack.User, userGroupName string) (bool, error)

func (*Slack) PostMessage

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

func (*Slack) UpdateUserGroup

func (a *Slack) UpdateUserGroup(userGroupName string, user string) error

Jump to

Keyboard shortcuts

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