Documentation
¶
Index ¶
- type DBFramework
- func (s *DBFramework) AddLog(log map[string]interface{}, index string, timestamp string) (err error)
- func (s *DBFramework) MatchJSON(match_value string, matchKey string, indexName string, limit *int32) (result map[string]interface{}, err error)
- func (s *DBFramework) MatchLargerThanJSON(match_value string, matchKey string, largerThan any, limit *int32, ...) (result map[string]interface{}, err error)
- func (s *DBFramework) SQL(query string) (final_result map[string]interface{}, err error)
- type ModuleHTTPFramework
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBFramework ¶
type DBFramework struct {
MantiClient *manticoresearch.APIClient
}
func NewDBModulehandler ¶
func NewDBModulehandler(DBHost string) *DBFramework
func NewDBModulehandler (handler func(map[string]interface{}) (map[string]interface{}, error), DBHost string) *DBFramework {
newconfig := manticoresearch.NewConfiguration()
newconfig.Servers[0].URL = DBHost
client := manticoresearch.NewAPIClient(newconfig)
db := &DBFramework{
MantiClient: client,
handler: handler,
}
return db
}
func (*DBFramework) AddLog ¶
func (s *DBFramework) AddLog(log map[string]interface{}, index string, timestamp string) (err error)
func (*DBFramework) MatchLargerThanJSON ¶
type ModuleHTTPFramework ¶
type ModuleHTTPFramework struct {
// contains filtered or unexported fields
}
func NewModuleHTTP ¶
func NewModuleHTTP(handler func(map[string]interface{}) (map[string]interface{}, error)) *ModuleHTTPFramework
func (*ModuleHTTPFramework) RunModuleHTTP ¶
func (s *ModuleHTTPFramework) RunModuleHTTP(port string) error
Click to show internal directories.
Click to hide internal directories.