Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ClipReceived ¶
Types ¶
type BackendClient ¶
type BackendClient interface { HandleMessages() Post(string) error Close() Get() string GetConfig() *BackendConfig }
func New ¶
func New(config BackendConfig) BackendClient
type BackendConfig ¶
type BackendConfig struct { Type string `yaml:"type"` Host string `yaml:"host"` User string `yaml:"user,omitempty"` Pass string `yaml:"pass,omitempty"` Topic string `yaml:"topic,omitempty"` EncryptionKey string `yaml:"encryptionkey,omitempty"` Action string `yaml:"action"` Compression bool `yaml:"compression,omitempty"` }
type NostrClient ¶
type NostrClient struct { Config BackendConfig Client string Ctx context.Context Cancel context.CancelFunc Relay *nostr.Relay Subscription *nostr.Subscription }
func (*NostrClient) Close ¶
func (c *NostrClient) Close()
func (*NostrClient) Get ¶
func (c *NostrClient) Get() string
func (*NostrClient) GetConfig ¶
func (c *NostrClient) GetConfig() *BackendConfig
func (*NostrClient) HandleMessages ¶
func (c *NostrClient) HandleMessages()
func (*NostrClient) Post ¶
func (c *NostrClient) Post(clip string) error
type NtfyClient ¶
type NtfyClient struct { Config BackendConfig ClientName string Client *ntfyClient.Client Cipher *dongle.Cipher BaseOptions []ntfyClient.PublishOption }
func (*NtfyClient) Close ¶
func (c *NtfyClient) Close()
func (*NtfyClient) Get ¶
func (c *NtfyClient) Get() string
func (*NtfyClient) GetConfig ¶
func (c *NtfyClient) GetConfig() *BackendConfig
func (*NtfyClient) HandleMessages ¶
func (c *NtfyClient) HandleMessages()
func (*NtfyClient) Post ¶
func (c *NtfyClient) Post(clip string) error
Click to show internal directories.
Click to hide internal directories.