Overview ▹
Overview ▾
Package protocol contains types for Perkeep protocol types.
Index
- type StatResponse
- func (p *StatResponse) MarshalJSON() ([]byte, error)
- type UploadResponse
- func (p *UploadResponse) MarshalJSON() ([]byte, error)
Package files
type StatResponse
type StatResponse struct {
    Stat        []blob.SizedRef `json:"stat"`
    CanLongPoll bool            `json:"canLongPoll"` // TODO: move this to discovery?
}
			StatResponse is the JSON document returned from the blob batch stat handler.
See doc/protocol/blob-stat-protocol.txt.
func (*StatResponse) MarshalJSON
func (p *StatResponse) MarshalJSON() ([]byte, error)
type UploadResponse
type UploadResponse struct {
    Received  []blob.SizedRef `json:"received"`
    ErrorText string          `json:"errorText,omitempty"`
}
			UploadResponse is the JSON document returned from the blob batch upload handler.
See doc/protocol/blob-upload-protocol.txt.
func (*UploadResponse) MarshalJSON
func (p *UploadResponse) MarshalJSON() ([]byte, error)
