mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 19:31:46 +01:00
21 lines
364 B
Go
21 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,
|
|
}
|