Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CreateUpload(id []byte, manifests []*wire.Manifest, ttl int64) (r [][]byte, err error)
- func (h *Handler) FetchChunk(blobID wire.ID, chunk *wire.Chunk) (r []byte, err error)
- func (h *Handler) FetchSpec(id wire.ID) (r *wire.Spec, err error)
- func (h *Handler) FinishUpload(uploadId []byte) (err error)
- func (h *Handler) GetInfo() (r *wire.ServerInfo, err error)
- func (h *Handler) GetManifests(ids [][]byte) (r []*wire.Manifest, err error)
- func (h *Handler) GetMissingBlobIds(ids [][]byte) (r [][]byte, err error)
- func (h *Handler) RemoveTag(ids [][]byte, tag []byte) (err error)
- func (h *Handler) SetTag(ids [][]byte, tag []byte) (err error)
- func (h *Handler) UploadChunk(uploadId []byte, chunkId wire.ID, body []byte) (err error)
- func (h *Handler) UploadSpec(spec *wire.Spec) (err error)
- type Options
- type ThriftServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { *proto.ServerInfo storage.Storage // contains filtered or unexported fields }
Bar server thrift handler
func NewHandler ¶
func (*Handler) CreateUpload ¶
func (*Handler) FetchChunk ¶
func (*Handler) FinishUpload ¶
func (*Handler) GetManifests ¶
func (*Handler) GetMissingBlobIds ¶
func (*Handler) UploadChunk ¶
type Options ¶
type Options struct { Info *proto.ServerInfo Bind string }
type ThriftServer ¶
func (*ThriftServer) Start ¶
func (s *ThriftServer) Start() (err error)
func (*ThriftServer) Stop ¶
func (s *ThriftServer) Stop() (err error)
Click to show internal directories.
Click to hide internal directories.