浏览代码

release interface

v2ray 9 年之前
父节点
当前提交
c7f6426c88
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      common/common.go

+ 12 - 0
common/common.go

@@ -1,3 +1,15 @@
 // Package common contains common utilities that are shared among other packages.
 // See each sub-package for detail.
 package common
+
+import (
+	"errors"
+)
+
+var (
+	ErrorAlreadyReleased = errors.New("Object already released.")
+)
+
+type Releasable interface {
+	Release()
+}