You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
389 B
19 lines
389 B
2 years ago
|
package golog
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"go.dtapp.net/goip"
|
||
|
"os"
|
||
|
"runtime"
|
||
|
)
|
||
|
|
||
|
func (c *ApiClient) setConfig(ctx context.Context) {
|
||
|
c.config.sdkVersion = Version
|
||
|
c.config.systemOs = runtime.GOOS
|
||
|
c.config.systemArch = runtime.GOARCH
|
||
|
c.config.goVersion = runtime.Version()
|
||
|
c.config.systemInsideIp = goip.GetInsideIp(ctx)
|
||
|
hostname, _ := os.Hostname()
|
||
|
c.config.systemHostName = hostname
|
||
|
}
|