logic

package
v0.0.0-...-b3f7bda Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

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

func NewHook

func NewHook() *Hook

func (*Hook) Hook

func (h *Hook) Hook(streamid string, app hook.Protocol)

type NfsReadSession

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

func NewNfs3ReadSession

func NewNfs3ReadSession(filename string, fileSize uint64) *NfsReadSession

func (*NfsReadSession) Completed

func (s *NfsReadSession) Completed()

func (*NfsReadSession) OnReadV2

func (s *NfsReadSession) OnReadV2(app *nfs.Nfs, call *nfsv2.ReadCall, reply *nfsv2.ReadReply) (err error)

func (*NfsReadSession) OnReadV3

func (s *NfsReadSession) OnReadV3(app *nfs.Nfs, call *nfsv3.ReadCall, reply *nfsv3.ReadReply) (err error)

type NfsSession

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

func NewNfsSession

func NewNfsSession(streamid string) *NfsSession

func (*NfsSession) GetFileName

func (s *NfsSession) GetFileName(fh string) string

func (*NfsSession) Handle

func (s *NfsSession) Handle(app hook.Protocol)

type NfsWriteSession

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

func NewNfsWriteSession

func NewNfsWriteSession(filename string) *NfsWriteSession

func (*NfsWriteSession) OnCommit

func (s *NfsWriteSession) OnCommit(v rpc.NfsVersion)

func (*NfsWriteSession) OnWriteV2

func (s *NfsWriteSession) OnWriteV2(app *nfs.Nfs, call *nfsv2.WriteCall, reply *nfsv2.WriteReply) (err error)

func (*NfsWriteSession) OnWriteV3

func (s *NfsWriteSession) OnWriteV3(app *nfs.Nfs, call *nfsv3.WriteCall, reply *nfsv3.WriteReply) (err error)

type Session

type Session interface {
	Handle(app hook.Protocol)
}

Jump to

Keyboard shortcuts

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