Files
herolib/lib/data/vstor/location.v
2024-12-25 09:23:31 +01:00

23 lines
533 B
V

module vstor
import freeflowuniverse.herolib.core.pathlib
import time
// TODO: define what is good way to specify a location, what do we have in TFChain
pub struct Location {
pub mut:
farmid string // as in TFChain
name string
description string
}
pub fn (mut vstor VSTOR) location_new(args Location) !Location {
// maintain all properties as defined before only change the ZDB's
mut location := Location{
address: args.address
name: args.name
description: args.description
}
return location
}