style: fix gci and golines lint errors in Signal channel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b3a19f474e
commit
b5bd7985c6
2 changed files with 14 additions and 8 deletions
|
|
@ -42,8 +42,8 @@ type SignalChannel struct {
|
||||||
config config.SignalConfig
|
config config.SignalConfig
|
||||||
httpClient *http.Client
|
httpClient *http.Client
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
cancel context.CancelFunc
|
cancel context.CancelFunc
|
||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal SSE event types
|
// Signal SSE event types
|
||||||
|
|
@ -611,7 +611,13 @@ func (c *SignalChannel) sendMessage(ctx context.Context, chatID, content string)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *SignalChannel) sendReaction(ctx context.Context, chatID, targetAuthor string, targetTimestamp int64, emoji string, remove bool) {
|
func (c *SignalChannel) sendReaction(
|
||||||
|
ctx context.Context,
|
||||||
|
chatID, targetAuthor string,
|
||||||
|
targetTimestamp int64,
|
||||||
|
emoji string,
|
||||||
|
remove bool,
|
||||||
|
) {
|
||||||
params := map[string]any{
|
params := map[string]any{
|
||||||
"account": c.config.Account,
|
"account": c.config.Account,
|
||||||
"emoji": emoji,
|
"emoji": emoji,
|
||||||
|
|
|
||||||
|
|
@ -451,12 +451,12 @@ type IRCConfig struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type SignalConfig struct {
|
type SignalConfig struct {
|
||||||
Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_SIGNAL_ENABLED"`
|
Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_SIGNAL_ENABLED"`
|
||||||
Account string `json:"account" env:"PICOCLAW_CHANNELS_SIGNAL_ACCOUNT"`
|
Account string `json:"account" env:"PICOCLAW_CHANNELS_SIGNAL_ACCOUNT"`
|
||||||
SignalCLIURL string `json:"signal_cli_url" env:"PICOCLAW_CHANNELS_SIGNAL_CLI_URL"`
|
SignalCLIURL string `json:"signal_cli_url" env:"PICOCLAW_CHANNELS_SIGNAL_CLI_URL"`
|
||||||
AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_SIGNAL_ALLOW_FROM"`
|
AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_SIGNAL_ALLOW_FROM"`
|
||||||
GroupTrigger GroupTriggerConfig `json:"group_trigger,omitempty"`
|
GroupTrigger GroupTriggerConfig `json:"group_trigger,omitempty"`
|
||||||
ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_SIGNAL_REASONING_CHANNEL_ID"`
|
ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_SIGNAL_REASONING_CHANNEL_ID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HeartbeatConfig struct {
|
type HeartbeatConfig struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue