Documentation ¶
Index ¶
Constants ¶
const ( // DefaultChunkSize specifies the amount of data mappers will read // up to, before sending results back to the engine. This is the // default size in the number of values returned in a raw query. // // Could be many more bytes depending on fields returned. DefaultChunkSize = 10000 )
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
MarshalJSON will marshal v to JSON. Pretty prints if pretty is true.
Types ¶
type AuthenticationRequest ¶
type AuthenticationRequest struct { Username string `json:"username"` Password string `json:"password"` GrantType string `json:"grant_type"` }
AuthenticationRequest defines an inbound authentication req
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` BindAddress string `toml:"bind-address"` AuthEnabled bool `toml:"auth-enabled"` LogEnabled bool `toml:"log-enabled"` WriteTracing bool `toml:"write-tracing"` PprofEnabled bool `toml:"pprof-enabled"` }
Config represents a configuration for a HTTP service.
type Feature ¶
type Feature struct { ID string Name string GlobPermissions bool RequiredPermissionLevel string GlobAvailable bool }
Feature describes additional beta and rollback features in a component livecycle
type Handler ¶
type Handler struct { Version string Logger *log.Logger WriteTrace bool // Detailed logging of write path Mongo *mgo.Database Elasticsearch *elastigo.Conn Cassandra *gocql.ClusterConfig Feature *Feature // contains filtered or unexported fields }
Handler represents an HTTP handler for the InfluxDB server.
func NewHandler ¶
NewHandler returns a new instance of handler with routes.
type PasswordChangeRequest ¶
type PasswordChangeRequest struct { NewPassword string `json:"new_password"` NewPasswordConfirmation string `json:"new_password_confirmation"` OldPassword string `json:"old_password"` }
PasswordChangeRequest defines an inbound authentication req
type Response ¶
type Response struct { Results []interface{} `json:"results"` Err string `json:"error"` }
Response represents a list of statement results.
func (*Response) Error ¶
Error returns the first error from any statement. Returns nil if no errors occurred on any statements.
func (Response) MarshalJSON ¶
MarshalJSON encodes a Response struct into JSON.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON decodes the data into the Response struct
type RootAPIResult ¶
type RootAPIResult struct { AppName string `json:"app"` Version string `json:"version"` AllowedPaths []map[string]interface{} `json:"paths"` }
RootAPIResult describes the API Result of the Root Document
type Service ¶
type Service struct { Handler *Handler Logger *log.Logger // contains filtered or unexported fields }
Service manages the listener and handler for an HTTP endpoint.
type SettingsUpdateRequest ¶
SettingsUpdateRequest defines an inbound settings update req