Back to godoc.org

Package benchmark

v1.0.0
Latest Go to latest
Published: Feb 23, 2019 | License: BSD-3-Clause | Module: github.com/hanwen/go-fuse

Index

Package Files

func ReadLines

func ReadLines(name string) []string

type LatencyMap

type LatencyMap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLatencyMap

func NewLatencyMap() *LatencyMap

func (*LatencyMap) Add

func (m *LatencyMap) Add(name string, dt time.Duration)

func (*LatencyMap) Counts

func (m *LatencyMap) Counts() map[string]int

func (*LatencyMap) Get

func (m *LatencyMap) Get(name string) (count int, dt time.Duration)

type StatFS

type StatFS struct {
	pathfs.FileSystem
	// contains filtered or unexported fields
}

func NewStatFS

func NewStatFS() *StatFS

func (*StatFS) Add

func (fs *StatFS) Add(name string, a *fuse.Attr)

func (*StatFS) AddFile

func (fs *StatFS) AddFile(name string)

func (*StatFS) GetAttr

func (fs *StatFS) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)

func (*StatFS) OpenDir

func (fs *StatFS) OpenDir(name string, context *fuse.Context) (stream []fuse.DirEntry, status fuse.Status)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier