slack

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(cfg *config.SlackConfig, logger *zap.SugaredLogger) (*Service, error)

func (*Service) GetConfiguration added in v0.16.0

func (s *Service) GetConfiguration(ctx context.Context) (WorkspaceConfiguration, error)

func (*Service) GetConfigurationForToken added in v0.16.0

func (s *Service) GetConfigurationForToken(ctx context.Context, token string) (WorkspaceConfiguration, error)

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

IsEnabled returns true if the slack service is enabled

func (*Service) SendMessage

func (s *Service) SendMessage(ctx context.Context, channel string, message *types.Message) (*types.SendResult, error)

type WorkspaceConfiguration added in v0.16.0

type WorkspaceConfiguration struct {
	WorkspaceName   string
	WorkspaceURL    string
	WorkspaceDomain string
	EmailDomain     string
	TeamID          string
	BotID           string
	BotName         string
	EnterpriseID    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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