seaweedfs/weed/pb/remote_pb/remote_pb_helper.go

9 lines
166 B
Go
Raw Normal View History

2021-08-26 22:18:34 +00:00
package remote_pb
import "github.com/golang/protobuf/proto"
func (fp *RemoteStorageLocation) Key() interface{} {
key, _ := proto.Marshal(fp)
return string(key)
}