Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( LogListPath = "/log/list" LogViewPath = "/log/view" )
var (
ConfigPath = "/config"
)
var (
EnvPath = "/env"
)
var (
ExploreCurrentPath = "/state/explore/current"
)
var (
RequestsPath = "/state/requests"
)
Functions ¶
This section is empty.
Types ¶
type ConfigAPI ¶
type ConfigAPI struct {
// contains filtered or unexported fields
}
ConfigAPI represents current configuration explore rest api..
func NewConfigAPI ¶
func NewConfigAPI(node models.Node, cfg config.Configuration) *ConfigAPI
NewConfigAPI creates a ConfigAPI instance.
func (*ConfigAPI) Configuration ¶
@Summary current node's configuration @Description return current node's configuration. @Tags State @Accept json @Produce json @Success 200 {object} object @Router /config [get]
type EnvAPI ¶
type EnvAPI struct {
// contains filtered or unexported fields
}
EnvAPI represents LinDB's env api.
type ExploreAPI ¶
type ExploreAPI struct {
// contains filtered or unexported fields
}
ExploreAPI represents monitoring metric explore rest api.
func NewExploreAPI ¶
func NewExploreAPI(globalKeyValues tag.Tags, r *linmetric.Registry) *ExploreAPI
NewExploreAPI creates explore api instance.
func (*ExploreAPI) ExploreCurrent ¶
func (d *ExploreAPI) ExploreCurrent(c *gin.Context)
ExploreCurrent explores current node monitoring metric.
func (*ExploreAPI) Register ¶
func (d *ExploreAPI) Register(route gin.IRoutes)
Register adds explore url route.
type LoggerAPI ¶
type LoggerAPI struct {
// contains filtered or unexported fields
}
LoggerAPI represents view log file rest api.
func NewLoggerAPI ¶
NewLoggerAPI creates log view api instance.
func (*LoggerAPI) List ¶
@Summary list log files @Description return all log files in log dir. @Tags State @Accept json @Produce json @Success 200 {object} object @Failure 404 {string} string "not found" @Failure 500 {string} string "internal error" @Router /log/list [get]
func (*LoggerAPI) View ¶
View tails the log file, return the last n lines. @Summary tail log file @Description return last N lines in log file. @Tags State @Accept json @Produce plain @Success 200 {string} string @Failure 404 {string} string "not found" @Failure 500 {string} string "internal error" @Router /log/view [get]
type RequestAPI ¶
type RequestAPI struct { }
RequestAPI represents request state related api.
func (*RequestAPI) GetAllAliveRequests ¶
func (api *RequestAPI) GetAllAliveRequests(c *gin.Context)
GetAllAliveRequests returns all alive request.
func (*RequestAPI) Register ¶
func (api *RequestAPI) Register(route gin.IRoutes)
Register adds request state url route.