data_workshop/building.go

18 lines
384 B
Go
Raw Normal View History

2020-05-22 07:39:43 +00:00
package main
import (
context "context"
)
var buildinglist = &KeyList{}
// UnimplementedBuildingServer can be embedded to have forward compatible implementations.
type buildingserver struct {
}
func (bs *buildingserver) Name(ctx context.Context, req *Request) (*Reply, error) {
reply := &Reply{}
reply.Message = string(GetRandomKey(buildinglist).([]byte))
return reply, nil
}