Defined internalOp.

geesefs-0-30-9
Aaron Jacobs 2015-05-05 10:20:03 +10:00
parent b79a1f5510
commit 6c38037b11
1 changed files with 11 additions and 0 deletions

View File

@ -36,6 +36,17 @@ var fTraceByPID = flag.Bool(
"individual PID. Not a good idea to use in production; races, bugs, and "+
"resource leaks likely lurk.")
// An interface that all ops inside which commonOp is embedded must
// implement.
type internalOp interface {
Op
// Convert to a bazilfuse response compatible with the Respond method on the
// wrapped bazilfuse request. If that Respond method takes no arguments,
// return nil.
toBazilfuseResponse() interface{}
}
// A helper for embedding common behavior.
type commonOp struct {
// The context exposed to the user.