handlers

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonBytesToMap

func JsonBytesToMap(jsonBytes []byte) (map[string]interface{}, error)

Types

type DiscordChannelHandler

type DiscordChannelHandler struct{}

func (*DiscordChannelHandler) HandleWork

func (h *DiscordChannelHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for DiscordChannelHandler.

type DiscordGuildHandler

type DiscordGuildHandler struct{}

func (*DiscordGuildHandler) HandleWork

func (h *DiscordGuildHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for DiscordGuildHandler.

type DiscordProfileHandler

type DiscordProfileHandler struct{}

func (*DiscordProfileHandler) HandleWork

func (h *DiscordProfileHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for DiscordProfileHandler.

type DiscordSentimentHandler

type DiscordSentimentHandler struct{}

func (*DiscordSentimentHandler) HandleWork

func (h *DiscordSentimentHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for DiscordSentimentHandler.

type DiscoreUserGuildsHandler

type DiscoreUserGuildsHandler struct{}

func (*DiscoreUserGuildsHandler) HandleWork

func (h *DiscoreUserGuildsHandler) HandleWork(data []byte) data_types.WorkResponse

type LLMChatBody

type LLMChatBody struct {
	Model    string `json:"model,omitempty"`
	Messages []struct {
		Role    string `json:"role"`
		Content string `json:"content"`
	} `json:"messages,omitempty"`
	Stream bool `json:"stream"`
}

type LLMChatHandler

type LLMChatHandler struct{}

func (*LLMChatHandler) HandleWork

func (h *LLMChatHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for LLMChatHandler.

type TelegramChannelHandler

type TelegramChannelHandler struct{}

func (*TelegramChannelHandler) HandleWork

func (h *TelegramChannelHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for TelegramChannelHandler.

type TelegramSentimentHandler

type TelegramSentimentHandler struct{}

func (*TelegramSentimentHandler) HandleWork

func (h *TelegramSentimentHandler) HandleWork(data []byte) data_types.WorkResponse

HandleWork implements the WorkHandler interface for TelegramSentimentHandler.

type TwitterFollowersHandler

type TwitterFollowersHandler struct{}

func (*TwitterFollowersHandler) HandleWork

func (h *TwitterFollowersHandler) HandleWork(data []byte) data_types.WorkResponse

type TwitterProfileHandler

type TwitterProfileHandler struct{}

func (*TwitterProfileHandler) HandleWork

func (h *TwitterProfileHandler) HandleWork(data []byte) data_types.WorkResponse

type TwitterQueryHandler

type TwitterQueryHandler struct{}

func (*TwitterQueryHandler) HandleWork

func (h *TwitterQueryHandler) HandleWork(data []byte) data_types.WorkResponse

type WebHandler

type WebHandler struct{}

WebHandler - All the web handlers implement the WorkHandler interface.

func (*WebHandler) HandleWork

func (h *WebHandler) HandleWork(data []byte) data_types.WorkResponse

type WebSentimentHandler

type WebSentimentHandler struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL