protocol

package
v0.0.0-...-8462f15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package protocol contains types for Camlistore protocol types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefAndSize

type RefAndSize struct {
	Ref  blob.Ref `json:"blobRef"`
	Size uint32   `json:"size"`
}

type StatResponse

type StatResponse struct {
	Stat        []*RefAndSize `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  []*RefAndSize `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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL