Documentation ¶
Index ¶
- func WriteError(w http.ResponseWriter, status int, reason string)
- type ActiveTasks
- type AllDocsResponse
- type Authenticator
- func (a Authenticator) Auth(r *http.Request) (*model.Session, string)
- func (a Authenticator) Authenticate(ctx context.Context, username, password string) port.SessionBuilder
- func (a Authenticator) DB(w http.ResponseWriter, r *http.Request, db *storage.Database) (*model.Session, bool)
- func (a Authenticator) Do(w http.ResponseWriter, r *http.Request) (*model.Session, bool)
- type Base
- type BulkDocRequest
- type ChangeDoc
- type Cluster
- type DBAll
- type DBChanges
- type DBCreate
- type DBDelete
- type DBDocAttachmentDelete
- type DBDocAttachmentGet
- type DBDocAttachmentPut
- type DBDocDelete
- type DBDocGet
- type DBDocPut
- type DBDocsAll
- type DBDocsBulk
- type DBDocsFind
- type DBEnsureFullCommit
- type DBIndex
- type DBIndexInfo
- type DBResponse
- type DBSearch
- type DBSecurityGet
- type DBSecurityPut
- type DBView
- type Database
- type EnsureFullCommitResponse
- type ErrorResponse
- type FindResponse
- type Index
- type Info
- type MultipartResponse
- type Props
- type Revisions
- type Router
- type Rows
- type SearchResult
- type SearchRow
- type SessionDelete
- type SessionGet
- type SessionInfo
- type SessionPost
- type SessionPostResponse
- type SessionResponse
- type SimpleDocResponse
- type Sizes
- type Task
- type UUIDs
- type UUIDsResponse
- type UpdatesPending
- type Value
- type Vendor
- type ViewIndex
- type ViewInfoResponse
- type ViewSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, status int, reason string)
Types ¶
type ActiveTasks ¶
type ActiveTasks struct {
Base
}
func (*ActiveTasks) ServeHTTP ¶
func (s *ActiveTasks) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AllDocsResponse ¶
type Authenticator ¶
func (Authenticator) Authenticate ¶
func (a Authenticator) Authenticate(ctx context.Context, username, password string) port.SessionBuilder
func (Authenticator) DB ¶
func (a Authenticator) DB(w http.ResponseWriter, r *http.Request, db *storage.Database) (*model.Session, bool)
func (Authenticator) Do ¶
func (a Authenticator) Do(w http.ResponseWriter, r *http.Request) (*model.Session, bool)
type BulkDocRequest ¶
type DBDocAttachmentDelete ¶
type DBDocAttachmentDelete struct {
Base
}
func (*DBDocAttachmentDelete) ServeHTTP ¶
func (s *DBDocAttachmentDelete) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBDocAttachmentGet ¶
type DBDocAttachmentGet struct {
Base
}
func (*DBDocAttachmentGet) ServeHTTP ¶
func (s *DBDocAttachmentGet) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBDocAttachmentPut ¶
func (*DBDocAttachmentPut) ServeHTTP ¶
func (s *DBDocAttachmentPut) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBDocDelete ¶
func (*DBDocDelete) ServeHTTP ¶
func (s *DBDocDelete) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBDocsBulk ¶
func (*DBDocsBulk) ServeHTTP ¶
func (s *DBDocsBulk) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBDocsFind ¶
type DBDocsFind struct {
Base
}
func (*DBDocsFind) ServeHTTP ¶
func (s *DBDocsFind) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBEnsureFullCommit ¶
type DBEnsureFullCommit struct {
Base
}
func (*DBEnsureFullCommit) ServeHTTP ¶
func (s *DBEnsureFullCommit) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBIndexInfo ¶
type DBIndexInfo struct {
Base
}
func (*DBIndexInfo) ServeHTTP ¶
func (s *DBIndexInfo) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBResponse ¶
type DBResponse struct { DbName string `json:"db_name"` PurgeSeq string `json:"purge_seq"` UpdateSeq string `json:"update_seq"` Sizes Sizes `json:"sizes"` Props Props `json:"props"` DocDelCount uint64 `json:"doc_del_count"` DocCount uint64 `json:"doc_count"` DiskFormatVersion uint64 `json:"disk_format_version"` CompactRunning bool `json:"compact_running"` Cluster *Cluster `json:"cluster"` InstanceStartTime string `json:"instance_start_time"` }
type DBSearch ¶
type DBSearch struct {
Base
}
type DBSecurityGet ¶
type DBSecurityGet struct {
Base
}
func (*DBSecurityGet) ServeHTTP ¶
func (s *DBSecurityGet) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DBSecurityPut ¶
type DBSecurityPut struct {
Base
}
func (*DBSecurityPut) ServeHTTP ¶
func (s *DBSecurityPut) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ErrorResponse ¶
type FindResponse ¶
type FindResponse struct { Docs []map[string]interface{} `json:"docs"` Bookmark string `json:"bookmark,omitempty"` ExecutionStats *model.ExecutionStats `json:"execution_stats"` Warning string `json:"warning,omitempty"` }
type MultipartResponse ¶
type MultipartResponse struct {
// contains filtered or unexported fields
}
func NewMultipartResponse ¶
func NewMultipartResponse(db *storage.Database, w http.ResponseWriter) *MultipartResponse
func (*MultipartResponse) Close ¶
func (r *MultipartResponse) Close()
func (*MultipartResponse) WriteDocument ¶
type SearchResult ¶
type SessionDelete ¶
type SessionDelete struct {
Base
}
func (*SessionDelete) ServeHTTP ¶
func (s *SessionDelete) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SessionGet ¶
type SessionGet struct {
Base
}
func (*SessionGet) ServeHTTP ¶
func (s *SessionGet) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SessionInfo ¶
type SessionPost ¶
type SessionPost struct {
Base
}
func (*SessionPost) ServeHTTP ¶
func (s *SessionPost) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SessionPostResponse ¶
type SessionResponse ¶
type SessionResponse struct { Ok bool `json:"ok"` SessionUserCtx model.Session `json:"userCtx"` SessionInfo SessionInfo `json:"info"` }
type SimpleDocResponse ¶
type Task ¶
type Task struct { Node string `json:"node"` Pid string `json:"pid"` ChangesDone int `json:"changes_done"` Database string `json:"database"` DesignDocument string `json:"design_document"` Phase string `json:"phase"` Progress int `json:"progress"` StartedOn int `json:"started_on"` // unix time TotalChanges int `json:"total_changes"` Type string `json:"type"` UpdatedOn int `json:"updated_on"` // unix time }
type UUIDsResponse ¶
type UUIDsResponse struct {
Uuids []string `json:"uuids"`
}
type UpdatesPending ¶
type ViewIndex ¶
type ViewIndex struct { UpdatesPending UpdatesPending `json:"updates_pending"` WaitingCommit bool `json:"waiting_commit"` WaitingClients int `json:"waiting_clients"` UpdaterRunning bool `json:"updater_running"` UpdateSeq int `json:"update_seq"` Sizes ViewSizes `json:"sizes"` Signature string `json:"signature"` PurgeSeq int `json:"purge_seq"` Language string `json:"language"` CompactRunning bool `json:"compact_running"` }
type ViewInfoResponse ¶
Source Files ¶
- active_tasks.go
- base.go
- db_all.go
- db_changes.go
- db_create.go
- db_delete.go
- db_doc_attachment_delete.go
- db_doc_attachment_get.go
- db_doc_attachment_put.go
- db_doc_delete.go
- db_doc_get.go
- db_doc_put.go
- db_docs_all.go
- db_docs_bulk.go
- db_docs_find.go
- db_ensure_full_commit.go
- db_index.go
- db_index_info.go
- db_search.go
- db_security_get.go
- db_security_put.go
- db_view.go
- helper_auth.go
- helper_db.go
- helper_error.go
- helper_options.go
- index.go
- router.go
- session_delete.go
- session_get.go
- session_post.go
- uuids.go
Click to show internal directories.
Click to hide internal directories.