mirror of
https://github.com/genuinetools/reg.git
synced 2024-05-13 01:38:32 -04:00
method for closing of gRPC connection (#155)
This commit is contained in:
parent
67d1af130d
commit
3033420c34
|
@ -81,6 +81,11 @@ func New(url string, opt Opt) (*Clair, error) {
|
|||
return registry, nil
|
||||
}
|
||||
|
||||
// Close closes the gRPC connection
|
||||
func (c *Clair) Close() error {
|
||||
return c.grpcConn.Close()
|
||||
}
|
||||
|
||||
// url returns a clair URL with the passed arguements concatenated.
|
||||
func (c *Clair) url(pathTemplate string, args ...interface{}) string {
|
||||
pathSuffix := fmt.Sprintf(pathTemplate, args...)
|
||||
|
|
Loading…
Reference in a new issue