agreeable-beard-96538
05/11/2022, 3:07 PMgo get <http://github.com/ory/keto/proto|github.com/ory/keto/proto>
which appears to have installed v0.8.0-alpha.2
but I can't get the import to work...
import (
"<http://github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2|github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2>"
)
this fails:
could not import github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2 (no required module provides package "github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2")
damp-sunset-69236
05/11/2022, 3:30 PM<http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.8.0-alpha.2|github.com/ory/keto/proto/ory/keto/acl/v1alpha1@v0.8.0-alpha.2>
and then you can use
package main
import (
"<http://google.golang.org/grpc|google.golang.org/grpc>"
acl "<http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1|github.com/ory/keto/proto/ory/keto/acl/v1alpha1>"
)
func main() {
conn, err := grpc.Dial("127.0.0.1:4467", grpc.WithInsecure())
if err != nil {
panic("Encountered error: " + err.Error())
}
writeClient := acl.NewWriteServiceClient(conn)
...
agreeable-beard-96538
05/11/2022, 3:33 PM1
in v1alpha1
and the 2
in v0.8.0-alpha.2
damp-sunset-69236
05/11/2022, 3:34 PMagreeable-beard-96538
05/11/2022, 3:36 PMgo.mod
I have:
require <http://github.com/ory/keto/proto|github.com/ory/keto/proto> v0.8.0-alpha.2
and I can use the latest things in my app:
package main
import (
"context"
acl "<http://github.com/ory/keto/proto/ory/keto/acl/v1alpha1|github.com/ory/keto/proto/ory/keto/acl/v1alpha1>"
)
func main() {
conn := struct{}{}
cl := acl.NewWriteServiceClient(conn)
cl.DeleteRelationTuples(context.Background(), &acl.DeleteRelationTuplesRequest{
Query: &acl.DeleteRelationTuplesRequest_Query{},
})
}
damp-sunset-69236
05/11/2022, 3:39 PMdamp-sunset-69236
05/11/2022, 3:40 PM