mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
20 lines
364 B
Go
20 lines
364 B
Go
package notif
|
|
|
|
import (
|
|
"context"
|
|
|
|
E "github.com/yusing/go-proxy/internal/error"
|
|
)
|
|
|
|
type (
|
|
Provider interface {
|
|
Name() string
|
|
Send(ctx context.Context, logMsg *LogMessage) error
|
|
}
|
|
ProviderCreateFunc func(map[string]any) (Provider, E.Error)
|
|
ProviderConfig map[string]any
|
|
)
|
|
|
|
var Providers = map[string]ProviderCreateFunc{
|
|
"gotify": newGotifyClient,
|
|
}
|