mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Removed unused variables in client package
This commit is contained in:
parent
d930c4136f
commit
a6c95ef646
1 changed files with 2 additions and 7 deletions
|
|
@ -10,14 +10,9 @@ import (
|
||||||
"github.com/OpenCHAMI/magellan/internal/util"
|
"github.com/OpenCHAMI/magellan/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
Host = "http://localhost:27779"
|
|
||||||
BaseEndpoint = "/hsm/v2"
|
|
||||||
)
|
|
||||||
|
|
||||||
type SmdClient struct {
|
type SmdClient struct {
|
||||||
*http.Client
|
*http.Client
|
||||||
Host string
|
URI string
|
||||||
Xname string
|
Xname string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +21,7 @@ func (c SmdClient) Name() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c SmdClient) RootEndpoint(endpoint string) string {
|
func (c SmdClient) RootEndpoint(endpoint string) string {
|
||||||
return fmt.Sprintf("/hsm/v2/%s%s", Host, endpoint)
|
return fmt.Sprintf("%s/hsm/v2%s", c.URI, endpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c SmdClient) GetClient() *http.Client {
|
func (c SmdClient) GetClient() *http.Client {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue