Documentation ¶
Index ¶
- Constants
- func FormatToMediaType(format string) (string, error)
- 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 CompactRequest
- 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 VacuumResponse
- type VectorRequest
- type VersionResponse
Constants ¶
View Source
const ( MediaTypeAny = "*/*" MediaTypeArrowStream = "application/vnd.apache.arrow.stream" MediaTypeCSV = "text/csv" MediaTypeJSON = "application/json" MediaTypeLine = "application/x-line" MediaTypeNDJSON = "application/x-ndjson" MediaTypeParquet = "application/x-parquet" MediaTypeVNG = "application/x-vng" MediaTypeZeek = "application/x-zeek" 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 FormatToMediaType ¶ added in v1.1.0
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 CompactRequest ¶ added in v1.2.0
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 {
Rules []string `zed:"rules"`
}
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 VacuumResponse ¶ added in v1.8.0
type VectorRequest ¶ added in v1.9.0
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.