Versions in this module Expand all Collapse all v1 v1.1.0 Nov 30, 2026 Changes in this version + const EnvClientID + const EnvClientSecret + const EnvSigningSecret + const EnvTeam + const EnvToken + const PathCommands + const PathOAuthCallback + const PathOAuthInstall + const PathSetup + var BotScopes = []string + func Manifest(name, command, baseURL string) json.RawMessage + type API interface + CreateApp func(ctx context.Context, configToken string, manifest json.RawMessage) (CreatedApp, error) + ExchangeCode func(ctx context.Context, clientID, clientSecret, code, redirectURI string) (Installation, error) + SetIcon func(ctx context.Context, configToken, appID string, png []byte) error + type CreatedApp struct + AppID string + ClientID string + ClientSecret string + SigningSecret string + type EnvFileStore struct + func NewEnvFileStore(path string) *EnvFileStore + func (s *EnvFileStore) Get(_ context.Context, name string) (string, error) + func (s *EnvFileStore) Save(_ context.Context, values map[string]string) error + type Handler struct + func New(opts Options) (*Handler, error) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Installation struct + AppID string + BotToken string + TeamID string + TeamName string + UserID string + type Options struct + API API + BasePath string + Channels func() []string + Command string + Icon []byte + Logger *slog.Logger + Name string + OnInstalled func(ctx context.Context) + PublicURL string + Store Store + type SSMClient interface + GetParameter func(ctx context.Context, in *ssm.GetParameterInput, opts ...func(*ssm.Options)) (*ssm.GetParameterOutput, error) + PutParameter func(ctx context.Context, in *ssm.PutParameterInput, opts ...func(*ssm.Options)) (*ssm.PutParameterOutput, error) + type SSMStore struct + func NewSSMStore(ctx context.Context, prefix, kmsKeyID string, client SSMClient) (*SSMStore, error) + func (s *SSMStore) Get(ctx context.Context, name string) (string, error) + func (s *SSMStore) Save(ctx context.Context, values map[string]string) error + type SlackAPI struct + func NewSlackAPI(httpClient *http.Client, apiURL string) *SlackAPI + func (s *SlackAPI) CreateApp(ctx context.Context, configToken string, manifest json.RawMessage) (CreatedApp, error) + func (s *SlackAPI) ExchangeCode(ctx context.Context, clientID, clientSecret, code, redirectURI string) (Installation, error) + func (s *SlackAPI) SetIcon(ctx context.Context, configToken, appID string, png []byte) error + type Store interface + Get func(ctx context.Context, name string) (string, error) + Save func(ctx context.Context, values map[string]string) error