Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HmacWithShaTobase64 ¶
Types ¶
type BaseChat ¶
type BaseChat interface { Chat(userID string, msg string) string HandleMediaMsg(msg *message.MixMessage) string }
func GetChatBot ¶
func GetChatBot() BaseChat
type Echo ¶
type Echo struct{}
func (*Echo) HandleMediaMsg ¶
func (e *Echo) HandleMediaMsg(msg *message.MixMessage) string
type ErrorChat ¶
type ErrorChat struct {
// contains filtered or unexported fields
}
func (*ErrorChat) HandleMediaMsg ¶
func (e *ErrorChat) HandleMediaMsg(msg *message.MixMessage) string
type SimpleChat ¶
type SimpleChat struct { }
func (SimpleChat) HandleMediaMsg ¶
func (s SimpleChat) HandleMediaMsg(msg *message.MixMessage) string
type SimpleGptChat ¶
type SimpleGptChat struct { SimpleChat // contains filtered or unexported fields }
type SparkResponse ¶
type SparkResponse struct { Header *SparkResponseHeader `json:"header"` Payload map[string]any `json:"payload"` }
type SparkResponseHeader ¶
type SparkResponseHeader struct { Code int `json:"code"` Message string `json:"message"` Sid string `json:"sid"` Status int `json:"status"` }
func (*SparkResponseHeader) IsFailed ¶
func (header *SparkResponseHeader) IsFailed() bool
func (*SparkResponseHeader) IsSuccess ¶
func (header *SparkResponseHeader) IsSuccess() bool
func (*SparkResponseHeader) ToString ¶
func (header *SparkResponseHeader) ToString() string
Click to show internal directories.
Click to hide internal directories.