next step, fix autogenpb
This commit is contained in:
parent
96b4c0b5a1
commit
eea1747f44
|
@ -19,6 +19,7 @@ message Machine { // `autogenpb:marshal`
|
||||||
Packages wit = 9; // packages that are available from mirrors.wit.com
|
Packages wit = 9; // packages that are available from mirrors.wit.com
|
||||||
string userAgent = 10;
|
string userAgent = 10;
|
||||||
string uuid = 11;
|
string uuid = 11;
|
||||||
|
// func(string) blah = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Machines { // `autogenpb:marshal` `autogenpb:gui`
|
message Machines { // `autogenpb:marshal` `autogenpb:gui`
|
||||||
|
|
|
@ -7,6 +7,14 @@ import (
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (mt *MachinesTable) lookupWidgetId(id int) {
|
||||||
|
log.Info("no shit. got to lookupWidgdetId() id =", id, "on mt", mt.GetUuid())
|
||||||
|
}
|
||||||
|
|
||||||
|
func (mt *MachinesTable) Custom(f func(int)) {
|
||||||
|
mt.pb.RegisterCustom(mt.lookupWidgetId)
|
||||||
|
}
|
||||||
|
|
||||||
func (mt *MachinesTable) Delete() {
|
func (mt *MachinesTable) Delete() {
|
||||||
if mt == nil {
|
if mt == nil {
|
||||||
log.Info("mt == nil table already deleted")
|
log.Info("mt == nil table already deleted")
|
||||||
|
|
Loading…
Reference in New Issue