seaweedfs/weed/pb/remote_pb/remote_pb_helper.go

9 lines
166 B
Go
Raw Normal View History

2021-08-27 06:18:34 +08:00
package remote_pb
2022-08-18 03:05:07 +08:00
import "google.golang.org/protobuf/proto"
2021-08-27 06:18:34 +08:00
func (fp *RemoteStorageLocation) Key() interface{} {
key, _ := proto.Marshal(fp)
return string(key)
}