camlistore.org: camlistore.org/pkg/blobserver/protocol Index | Files

package protocol

import "camlistore.org/pkg/blobserver/protocol"

Package protocol contains types for Camlistore protocol types.

Index

Package Files

protocol.go

type StatResponse Uses

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 Uses

func (p *StatResponse) MarshalJSON() ([]byte, error)

type UploadResponse Uses

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 Uses

func (p *UploadResponse) MarshalJSON() ([]byte, error)

Package protocol imports 2 packages (graph) and is imported by 50 packages. Updated 2018-06-29. Refresh now. Tools for package owners.