slack

package
v0.0.1-dev-bc965b9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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) SetUpdating

func (a *ApiChannel) SetUpdating()

func (*ApiChannel) ToCosSchema

func (a *ApiChannel) ToCosSchema() CosChannel

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) SetOk

func (o *Options) SetOk()

Jump to

Keyboard shortcuts

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