• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ory / keto / 10166504429

30 Jul 2024 04:53PM CUT coverage: 77.612%. First build
10166504429

Pull #1559

github

zepatrik
chore: bump ory/x
Pull Request #1559: chore: bump dependencies

5734 of 7388 relevant lines covered (77.61%)

489.75 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/main.go
1
// Copyright © 2023 Ory Corp
2
// SPDX-License-Identifier: Apache-2.0
3

4
package main
5

6
import (
7
        "context"
8

9
        rts "github.com/ory/keto/proto/ory/keto/relation_tuples/v1alpha2"
10

11
        "google.golang.org/grpc"
12
        "google.golang.org/grpc/credentials/insecure"
13
)
14

15
func main() {
×
16
        wc, err := grpc.Dial("127.0.0.1:4467", grpc.WithTransportCredentials(insecure.NewCredentials()))
×
17
        if err != nil {
×
18
                panic(err)
×
19
        }
20
        defer wc.Close()
×
21

×
22
        wClient := rts.NewWriteServiceClient(wc)
×
23
        _, err = wClient.TransactRelationTuples(context.Background(), &rts.TransactRelationTuplesRequest{
×
24
                RelationTupleDeltas: []*rts.RelationTupleDelta{
×
25
                        {
×
26
                                RelationTuple: &rts.RelationTuple{
×
27
                                        Namespace: "messages",
×
28
                                        Object:    "02y_15_4w350m3",
×
29
                                        Relation:  "decypher",
×
30
                                        Subject:   rts.NewSubjectID("john"),
×
31
                                },
×
32
                                Action: rts.RelationTupleDelta_ACTION_DELETE,
×
33
                        },
×
34
                },
×
35
        })
×
36
        if err != nil {
×
37
                panic(err)
×
38
        }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc