slack

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(authToken log.RedactedString) (c client, err error)

Types

type BotProfile

type BotProfile struct {
}

type Message

type Message struct {
	BotId      string     `json:"bot_id"`
	Type       string     `json:"type"`
	Text       string     `json:"text"`
	User       string     `json:"user"`
	TS         string     `json:"ts"`
	Team       string     `json:"team"`
	BotProfile BotProfile `json:"bot_profile"`
	Deleted    bool       `json:"deleted"`
	Updated    int        `json:"updated"`
	TeamId     string     `json:"team_id"`
}

type Service added in v0.1.0

type Service interface {
	Set(task Task) error
	Tasks() []scheduletasks.TaskMetadata
}

func Init added in v0.1.0

func Init(s stream.Stream, consBuild consensus.ConsBuilderFunc, scr screenshot.Store, cryptoKey log.RedactedString, ctx context.Context) (out Service, err error)

type Task added in v0.1.0

type Task struct {
	Site         sites.Site         `json:"site"`
	Time         time.Time          `json:"time"`
	Interval     time.Duration      `json:"interval"`
	SlackToken   log.RedactedString `json:"slack_token"`
	SlackChannel string             `json:"slack_channel"`
}

Jump to

Keyboard shortcuts

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