Skip to content

Commit

Permalink
feat: embed v1 Watch client
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-whit committed Dec 7, 2021
1 parent 9d59da6 commit ce506cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v1/client.go
Expand Up @@ -13,6 +13,7 @@ import (
type Client struct {
v1.SchemaServiceClient
v1.PermissionsServiceClient
v1.WatchServiceClient
}

// NewClient initializes a brand new client for interacting with Authzed.
Expand All @@ -28,5 +29,6 @@ func NewClient(endpoint string, opts ...grpc.DialOption) (*Client, error) {
return &Client{
v1.NewSchemaServiceClient(conn),
v1.NewPermissionsServiceClient(conn),
v1.NewWatchServiceClient(conn),
}, nil
}

0 comments on commit ce506cd

Please sign in to comment.