Help us shape the future of Go! Take the 2026 Go Developer Survey

projectslack

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 9 Imported by: 0

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