Documentation ¶
Index ¶
- Constants
- func MediaTypeToFormat(s string, dflt string) (string, error)
- func RequestIDFromContext(ctx context.Context) string
- type AuthIdentityResponse
- type AuthMethod
- type AuthMethodAuth0Details
- type AuthMethodResponse
- type BranchMergeRequest
- type BranchPostRequest
- type CommitMessage
- type CommitResponse
- type DeleteRequest
- type ErrUnsupportedMimeType
- type Error
- type EventBranch
- type EventBranchCommit
- type EventPool
- type IndexApplyRequest
- type IndexRulesAddRequest
- type IndexRulesDeleteRequest
- type IndexRulesDeleteResponse
- type IndexUpdateRequest
- type PoolPostRequest
- type PoolPutRequest
- type QueryChannelEnd
- type QueryChannelSet
- type QueryError
- type QueryRequest
- type QueryStats
- type QueryWarning
- type VersionResponse
Constants ¶
View Source
const ( MediaTypeAny = "*/*" MediaTypeCSV = "text/csv" MediaTypeJSON = "application/json" MediaTypeNDJSON = "application/x-ndjson" MediaTypeZJSON = "application/x-zjson" MediaTypeZNG = "application/x-zng" MediaTypeZSON = "application/x-zson" )
View Source
const RequestIDHeader = "X-Request-ID"
Variables ¶
This section is empty.
Functions ¶
func MediaTypeToFormat ¶
MediaTypeToFormat returns the anyio format of the media type value s. If s is MediaTypeAny or undefined the default format dflt will be returned.
func RequestIDFromContext ¶
Types ¶
type AuthIdentityResponse ¶
type AuthMethod ¶
type AuthMethod string
const ( AuthMethodNone AuthMethod = "" AuthMethodAuth0 AuthMethod = "auth0" )
type AuthMethodAuth0Details ¶
type AuthMethodAuth0Details struct { // Audience is the value to use for the "aud" standard claim when // requesting an access token for this service. Audience string `json:"audience"` // ClientID is the public client id to use when interacting with // the above Auth0 domain. ClientID string `json:"client_id"` // Domain is the Auth0 domain (in url form) to use as the endpoint // for any oauth flows. Domain string `json:"domain"` }
type AuthMethodResponse ¶
type AuthMethodResponse struct { Kind AuthMethod `json:"kind" zed:"kind"` Auth0 *AuthMethodAuth0Details `json:"auth0,omitempty" zed:"auth0,omitempty"` }
type BranchMergeRequest ¶
type BranchMergeRequest struct {
At string `json:"at"`
}
type BranchPostRequest ¶
type CommitMessage ¶
type CommitResponse ¶
type DeleteRequest ¶ added in v0.32.0
type ErrUnsupportedMimeType ¶ added in v0.33.0
type ErrUnsupportedMimeType struct {
Type string
}
func (*ErrUnsupportedMimeType) Error ¶ added in v0.33.0
func (m *ErrUnsupportedMimeType) Error() string
type Error ¶
type EventBranch ¶
type EventBranchCommit ¶
type IndexApplyRequest ¶ added in v0.32.0
type IndexRulesAddRequest ¶ added in v0.32.0
type IndexRulesDeleteRequest ¶ added in v0.32.0
type IndexRulesDeleteRequest struct {
RuleIDs []string `zed:"rule_ids"`
}
type IndexRulesDeleteResponse ¶ added in v0.32.0
type IndexUpdateRequest ¶ added in v0.32.0
type IndexUpdateRequest struct {
RuleNames []string `zed:"rule_names"`
}
type PoolPostRequest ¶
type PoolPutRequest ¶
type PoolPutRequest struct {
Name string `json:"name"`
}
type QueryChannelEnd ¶
type QueryChannelEnd struct {
ChannelID int `json:"channel_id" zed:"channel_id"`
}
type QueryChannelSet ¶
type QueryChannelSet struct {
ChannelID int `json:"channel_id" zed:"channel_id"`
}
type QueryError ¶
type QueryError struct {
Error string `json:"error" zed:"error"`
}
type QueryRequest ¶
type QueryStats ¶
type QueryWarning ¶
type QueryWarning struct {
Warning string `json:"warning" zed:"warning"`
}
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.