Documentation
¶
Index ¶
- type ChatHistoryQuery
- type Server
- func (s *Server) SetChatHandler(fn func(ctx context.Context, sessionKey, content string) (string, error))
- func (s *Server) SetChatHistoryHandler(fn func(query ChatHistoryQuery) []map[string]interface{})
- func (s *Server) SetConfigAfterHook(fn func(forceRuntimeReload bool) error)
- func (s *Server) SetConfigPath(path string)
- func (s *Server) SetCronHandler(fn func(action string, args map[string]interface{}) (interface{}, error))
- func (s *Server) SetGatewayVersion(v string)
- func (s *Server) SetLogFilePath(path string)
- func (s *Server) SetMessageBus(mb *bus.MessageBus)
- func (s *Server) SetProtectedRoute(path string, handler http.Handler)
- func (s *Server) SetSessionSearchHandler(fn func(query SessionSearchQuery) []map[string]interface{})
- func (s *Server) SetToken(token string)
- func (s *Server) SetToolsCatalogHandler(fn func() interface{})
- func (s *Server) SetWeixinChannel(ch *channels.WeixinChannel)
- func (s *Server) SetWorkspacePath(path string)
- func (s *Server) Start(ctx context.Context) error
- type SessionSearchQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatHistoryQuery ¶ added in v1.1.0
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetChatHandler ¶
func (*Server) SetChatHistoryHandler ¶
func (s *Server) SetChatHistoryHandler(fn func(query ChatHistoryQuery) []map[string]interface{})
func (*Server) SetConfigAfterHook ¶
func (*Server) SetConfigPath ¶
func (*Server) SetCronHandler ¶
func (*Server) SetGatewayVersion ¶
func (*Server) SetLogFilePath ¶
func (*Server) SetMessageBus ¶ added in v1.0.2
func (s *Server) SetMessageBus(mb *bus.MessageBus)
func (*Server) SetProtectedRoute ¶
func (*Server) SetSessionSearchHandler ¶ added in v1.1.0
func (s *Server) SetSessionSearchHandler(fn func(query SessionSearchQuery) []map[string]interface{})
func (*Server) SetToolsCatalogHandler ¶
func (s *Server) SetToolsCatalogHandler(fn func() interface{})
func (*Server) SetWeixinChannel ¶ added in v1.0.1
func (s *Server) SetWeixinChannel(ch *channels.WeixinChannel)
func (*Server) SetWorkspacePath ¶
Click to show internal directories.
Click to hide internal directories.