mirror of
https://github.com/wlynxg/NetHive.git
synced 2025-10-05 23:16:54 +08:00
23 lines
279 B
Go
23 lines
279 B
Go
package control
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/net/gclient"
|
|
)
|
|
|
|
const (
|
|
ConnectURL = "/api/v1/connect"
|
|
)
|
|
|
|
type Client struct {
|
|
server string
|
|
client *gclient.Client
|
|
}
|
|
|
|
func New(server string) *Client {
|
|
c := &Client{
|
|
server: server,
|
|
client: gclient.New(),
|
|
}
|
|
return c
|
|
}
|