From 02f72e548162c4563008c30172af5e714ebc0b10 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 1 Jun 2018 18:10:33 +0900 Subject: [PATCH] ing --- auth/info/info.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/auth/info/info.go b/auth/info/info.go index 1022cbb..e59d5f2 100644 --- a/auth/info/info.go +++ b/auth/info/info.go @@ -8,17 +8,17 @@ import ( "net" "git.loafle.net/commons/util-go/net/gateway" - noauthprobeM "git.loafle.net/overflow/commons-go/model/noauthprobe" + ocmn "git.loafle.net/overflow/commons-go/model/noauthprobe" "github.com/shirou/gopsutil/host" ) func GetRegistHeader(apiKey string) (string, error) { var err error - nap := noauthprobeM.NoAuthProbe{ + nap := ocmn.NoAuthProbe{ APIKey: apiKey, } - var napd *noauthprobeM.NoAuthProbeDescription + var napd *ocmn.NoAuthProbeDescription if napd, err = getDescription(); nil != err { return "", err } @@ -38,9 +38,9 @@ func GetRegistHeader(apiKey string) (string, error) { return enc, nil } -func getDescription() (*noauthprobeM.NoAuthProbeDescription, error) { +func getDescription() (*ocmn.NoAuthProbeDescription, error) { var err error - napd := &noauthprobeM.NoAuthProbeDescription{} + napd := &ocmn.NoAuthProbeDescription{} if napd.Host, err = getHost(); nil != err { return nil, err @@ -53,9 +53,9 @@ func getDescription() (*noauthprobeM.NoAuthProbeDescription, error) { return napd, nil } -func getHost() (*noauthprobeM.NoAuthProbeDescriptionHost, error) { +func getHost() (*ocmn.NoAuthProbeDescriptionHost, error) { if i, err := host.Info(); nil == err { - h := &noauthprobeM.NoAuthProbeDescriptionHost{} + h := &ocmn.NoAuthProbeDescriptionHost{} h.Name = i.Hostname h.OS = i.OS @@ -70,7 +70,7 @@ func getHost() (*noauthprobeM.NoAuthProbeDescriptionHost, error) { } } -func getNetwork() (*noauthprobeM.NoAuthProbeDescriptionNetwork, error) { +func getNetwork() (*ocmn.NoAuthProbeDescriptionNetwork, error) { var ip net.IP var iface string var err error @@ -96,7 +96,7 @@ func getNetwork() (*noauthprobeM.NoAuthProbeDescriptionNetwork, error) { return nil, errors.New("Interface of gateway is not exist") } - n := &noauthprobeM.NoAuthProbeDescriptionNetwork{} + n := &ocmn.NoAuthProbeDescriptionNetwork{} i := interfaces[idx]