projectslack

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChannelID     string `json:"channel_id"`
	ChannelName   string `json:"channel_name"`
	Enabled       bool   `json:"enabled"`
	DisableReason string `json:"disable_reason,omitempty"`
}

func Delete

func Delete(ctx context.Context, client *apiclient.Client, p Project) (Config, error)

func Find

func Find(ctx context.Context, client *apiclient.Client, p Project) (Config, error)

func SetChannel

func SetChannel(ctx context.Context, client *apiclient.Client, p Project, channel string) (Config, error)

func SetEnabled

func SetEnabled(ctx context.Context, client *apiclient.Client, p Project, enabled bool) (Config, error)

type Preference

type Preference struct {
	Group   string `json:"group"`
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type Project

type Project struct {
	Slug  string
	ID    uuid.UUID
	OrgID uuid.UUID
}

func ResolveProject

func ResolveProject(ctx context.Context, client *apiclient.Client, projectSlug string) (Project, error)

type Status

type Status struct {
	Config
	Preferences []Preference `json:"preferences"`
}

func Get

func Get(ctx context.Context, client *apiclient.Client, p Project) (Status, error)

Jump to

Keyboard shortcuts

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