utils

package
v0.0.0-...-613ea09 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadMetaData = errors.New("bad metadata")
)

Functions

func GetChunkMeta

func GetChunkMeta(etcdClient *clientv3.Client, chunkUUID string) (*pb.Chunk, error)

func GetFileMeta

func GetFileMeta(etcdClient *clientv3.Client, fileUUID string) (*pb.File, error)

func GetWorkerAddr

func GetWorkerAddr(etcdClient *clientv3.Client, workerName string) (string, error)

func GetWorkersMeta

func GetWorkersMeta(etcdClient *clientv3.Client) ([]string, error)

func ToJSONString

func ToJSONString(c interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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