Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logrus.New()
Logger is exported to be used in external package.
Functions ¶
func SetupRoute ¶
func SetupRoute(r *gin.RouterGroup, handler Handler)
SetupRoute binds route of gin and API
Types ¶
type ExecSearchRequest ¶
type ExecSearchResponse ¶
type ExecSearchResponse struct {
SearchID searchID `json:"search_id"`
}
type GetSearchLogMetaData ¶
type GetSearchLogsResponse ¶
type GetSearchLogsResponse struct { ID searchID `json:"search_id"` Logs []*logData `json:"logs"` MetaData GetSearchLogMetaData `json:"metadata"` }
type GetSearchResponse ¶
type GetSearchResponse struct { ID searchID `json:"search_id"` MetaData *searchMetaData `json:"metadata"` }
type MinervaHandler ¶
type MinervaHandler struct { DatabaseName string IndexTableName string MessageTableName string OutputPath string MetaTableName string Region string }
func (*MinervaHandler) ExecSearch ¶
func (x *MinervaHandler) ExecSearch(c *gin.Context) (*Response, Error)
func (*MinervaHandler) GetSearch ¶
func (x *MinervaHandler) GetSearch(c *gin.Context) (*Response, Error)
func (MinervaHandler) GetSearchLogs ¶
func (x MinervaHandler) GetSearchLogs(c *gin.Context) (*Response, Error)
func (*MinervaHandler) GetSearchTimeSeries ¶
func (x *MinervaHandler) GetSearchTimeSeries(c *gin.Context) (*Response, Error)
type MockHandler ¶
func NewMockHandler ¶
func NewMockHandler() *MockHandler
func (*MockHandler) ExecSearch ¶
func (x *MockHandler) ExecSearch(c *gin.Context) (*Response, Error)
func (*MockHandler) GetSearchLogs ¶
func (x *MockHandler) GetSearchLogs(c *gin.Context) (*Response, Error)
func (*MockHandler) GetSearchTimeSeries ¶
func (x *MockHandler) GetSearchTimeSeries(c *gin.Context) (*Response, Error)
Click to show internal directories.
Click to hide internal directories.