slack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlackHook

func NewSlackHook(ctx context.Context, params *SlackParameter, level zapcore.Level) log.ZapWriteHook

Types

type Client

type Client struct {
	*slack.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(params *SlackParameter, httpClient *http.Client) *Client

func (*Client) UpdateStatusMessage

func (c *Client) UpdateStatusMessage(blocks ...slack.Block) stackerr.Error

type SlackParameter

type SlackParameter struct {
	Token                  string `json:"token"`
	StatusMessageChannel   string `json:"status_message_channel"`
	StatusMessageTimestamp string `json:"status_message_timestamp"`
	MonitoringChannel      string `json:"monitoring_channel"`
}

func GetParameter

func GetParameter(ctx context.Context, ssmParamName string) (*SlackParameter, stackerr.Error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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