Skip to content

Commit

Permalink
Merge pull request #41 from jon-whit/add-v1-watchclient
Browse files Browse the repository at this point in the history
feat: embed v1 Watch client
  • Loading branch information
jzelinskie committed Dec 7, 2021
2 parents 9d59da6 + ce506cd commit 85fcdfe
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 85fcdfe

Please sign in to comment.