volume

package
v0.0.0-...-7ce57cb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeServer

type VolumeServer struct {
	ID              string
	TotalChunkCount uint64
	Size            uint64
	Used            uint64
	ChunksSet       map[int64]uint64 // chunkid -> size

	Host string
	Port int
	// contains filtered or unexported fields
}

func NewVolumeServer

func NewVolumeServer() *VolumeServer

func (*VolumeServer) DeleteChunk

func (*VolumeServer) GetChunk

func (*VolumeServer) Ping

func (vs *VolumeServer) Ping(ctx context.Context, req *vpb.PingRequest) (*vpb.PingResponse, error)

func (*VolumeServer) PutChunk

func (*VolumeServer) VolumeStatus

Jump to

Keyboard shortcuts

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