slack

package
v0.0.0-...-45c4399 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(slackWebHook string, msg string)

Types

type Notifier

type Notifier struct {
	WebHookURL string
}

func (Notifier) Send

func (s Notifier) Send(msg string)

type Profile

type Profile struct {
	DisplayName string `json:"display_name"`
	RealName    string `json:"real_name"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Email       string `json:"email"`
}

type SlackUser

type SlackUser struct {
	Name     string  `json:"name"`
	RealName string  `json:"real_name"`
	Profile  Profile `json:"profile"`
	IsBot    bool    `json:"is_bot"`
	Deleted  bool    `json:"deleted"`
}

func GetUsers

func GetUsers(token string) ([]SlackUser, error)

type SlackUserResponse

type SlackUserResponse struct {
	Members []SlackUser `json:"members"`
}

Jump to

Keyboard shortcuts

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