diff options
Diffstat (limited to 'novactl/lib/conn.go')
| -rw-r--r-- | novactl/lib/conn.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/novactl/lib/conn.go b/novactl/lib/conn.go deleted file mode 100644 index 362c9ed..0000000 --- a/novactl/lib/conn.go +++ /dev/null @@ -1,19 +0,0 @@ -package lib - -import ( - "google.golang.org/grpc" - - "github.com/discordnova/nova/common/management" -) - -// NewConn creates a connection to the manager -func NewConn(host string) (*management.ManagementServiceClient, error) { - lis, err := grpc.Dial(host, grpc.WithInsecure()) - if err != nil { - return nil, err - } - - conn := management.NewManagementServiceClient(lis) - - return &conn, nil -} |
