refactor: separating out remote.proto
This commit is contained in:
8
weed/pb/remote_pb/remote_pb_helper.go
Normal file
8
weed/pb/remote_pb/remote_pb_helper.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package remote_pb
|
||||
|
||||
import "github.com/golang/protobuf/proto"
|
||||
|
||||
func (fp *RemoteStorageLocation) Key() interface{} {
|
||||
key, _ := proto.Marshal(fp)
|
||||
return string(key)
|
||||
}
|
||||
Reference in New Issue
Block a user