import "github.com/muesli/beehive/api/resources/logs"
logs.go logs_get.go logs_response.go
LogResource is the resource responsible for /logs
func (r *LogResource) Get(ctx smolder.APIContext, request *restful.Request, response *restful.Response, params map[string][]string)
Get sends out items matching the query parameters
func (r *LogResource) GetAuthRequired() bool
GetAuthRequired returns true because all requests need authentication
func (r *LogResource) GetByIDsAuthRequired() bool
GetByIDsAuthRequired returns true because all requests need authentication
func (r *LogResource) GetDoc() string
GetDoc returns the description of this API endpoint
func (r *LogResource) GetParams() []*restful.Parameter
GetParams returns the parameters supported by this API endpoint
func (r *LogResource) Register(container *restful.Container, config smolder.APIConfig, context smolder.APIContextFactory)
Register this resource with the container to setup all the routes
func (r *LogResource) Returns() interface{}
Returns returns the model that will be returned
type LogResponse struct { smolder.Response Logs []logInfoResponse `json:"logs,omitempty"` // contains filtered or unexported fields }
LogResponse is the common response to 'log' requests
func (r *LogResponse) AddLog(log *bees.LogMessage)
AddLog adds a log to the response
func (r *LogResponse) EmptyResponse() interface{}
EmptyResponse returns an empty API response for this endpoint if there's no data to respond with
func (r *LogResponse) Init(context smolder.APIContext)
Init a new response
Package logs imports 4 packages (graph) and is imported by 3 packages. Updated 2019-05-04. Refresh now. Tools for package owners.