wugui

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRadosCacheStats

func GetRadosCacheStats() groupcache.Stats

func InitCachePool

func InitCachePool(me string, peers []string, port int)

func InitRadosCache

func InitRadosCache(name string, size int64, chunkSize int)

func SetCachePoolPeers

func SetCachePoolPeers(peers []string, port int)

Types

type Key

type Key struct {
	// contains filtered or unexported fields
}

func (*Key) FromString

func (k *Key) FromString(key string) (err error)

func (*Key) String

func (k *Key) String() string

type RadosReaderAt

type RadosReaderAt struct {
	// contains filtered or unexported fields
}

func NewRadosReaderAt

func NewRadosReaderAt(striper *rados.StriperPool, poolname string, filename string, size int64) RadosReaderAt

TODO(wenjianhn):

  1. func NewRadosReaderAt(poolname string, filename string)
  2. reuse rados.NewConn

func (*RadosReaderAt) ReadAt

func (r *RadosReaderAt) ReadAt(p []byte, off int64) (n int, err error)

func (*RadosReaderAt) Size

func (r *RadosReaderAt) Size() int64

Jump to

Keyboard shortcuts

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