kopia lustrzana https://github.com/reiver/greatape
15 wiersze
309 B
Go
15 wiersze
309 B
Go
package contracts
|
|
|
|
import . "fmt"
|
|
|
|
type IObject interface {
|
|
Stringer
|
|
// Id returns the unique identifier or 'Id' of this object instance.
|
|
Id() int64
|
|
SortOrder() float32
|
|
// Validate checks whether the current instance contains any errors.
|
|
Validate() error
|
|
Lock(context uint64)
|
|
Unlock(context uint64)
|
|
}
|