protocol

package
v0.0.0-...-d9fd4a4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: MIT Imports: 3 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 ConfigResponse

type ConfigResponse struct {
	Data  *blobserver.Config `json:"Data"`
	Error map[string]string  `json:"Error,omitempty"`
}

ConfigResponse is the JSON document returned storage config handler.

type RefInfo

type RefInfo struct {
	blob.Ref
	Size uint32
	MD5  string `json:"MD5,omitempty"`
}

type RemoveResponse

type RemoveResponse struct {
	Removed []blob.Ref        `json:"Data"`
	Error   map[string]string `json:"Error,omitempty"`
}

RemoveResponse is the JSON document returned from the blob batch remove handler.

func (*RemoveResponse) MarshalJSON

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

type StatResponse

type StatResponse struct {
	Stat  []RefInfo         `json:"Data"`
	Error map[string]string `json:"Error,omitempty"`
}

StatResponse is the JSON document returned from the blob batch stat handler.

func (*StatResponse) MarshalJSON

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

type UploadResponse

type UploadResponse struct {
	Received []RefInfo         `json:"Data"`
	Error    map[string]string `json:"Error,omitempty"`
}

UploadResponse is the JSON document returned from the blob batch upload handler.

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