MCPcopy Create free account
hub / github.com/bytebase/bytebase / newProvider

Function newProvider

backend/plugin/webhook/slack/app.go:22–27  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

20}
21
22func newProvider(token string) *provider {
23 return &provider{
24 c: &http.Client{},
25 token: token,
26 }
27}
28
29func ValidateToken(ctx context.Context, token string) error {
30 return newProvider(token).authTest(ctx)

Callers 2

ValidateTokenFunction · 0.70
postDirectMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected