slack

package
v0.0.1-dev-c20be17 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelCollection = "slackChannels"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiChannel

type ApiChannel struct {
	Name        string          `json:"name" bson:"name"`
	URL         string          `json:"url" bson:"url"`
	Description string          `json:"description" bson:"description"`
	Enabled     bool            `json:"enabled,omitempty" bson:"enabled"`
	Status      status.Settings `json:"status" bson:"status"`
}

func (*ApiChannel) ConvertToCosSchema

func (c *ApiChannel) ConvertToCosSchema() CosChannel

func (*ApiChannel) InitUpdateStatus

func (c *ApiChannel) InitUpdateStatus()

type CosChannel

type CosChannel struct {
	Channel     string `json:"channel" bson:"channel"`
	URL         string `json:"url" bson:"url"`
	Username    string `json:"username" bson:"username"`
	Workspace   string `json:"workspace" bson:"workspace"`
	Description string `json:"description" bson:"description"`
}

type Options

type Options struct {
	Channels []ApiChannel `json:"channels" bson:"channels"`
}

func (*Options) InitOkStatus

func (o *Options) InitOkStatus()

Jump to

Keyboard shortcuts

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