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.
18 lines
339 B
18 lines
339 B
7 months ago
|
package client
|
||
|
|
||
|
type Config struct {
|
||
|
CenterServer string `json:"centerServer,omitempty"`
|
||
|
HostName string `json:"hostName,omitempty"`
|
||
|
InstanceId string `json:"instanceId,omitempty"`
|
||
|
}
|
||
|
|
||
|
type Client struct {
|
||
|
config Config
|
||
|
}
|
||
|
|
||
|
func NetClient(config Config) *Client {
|
||
|
return &Client{
|
||
|
config: config,
|
||
|
}
|
||
|
}
|