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.
 
 
 

29 lines
488 B

package bvc
import (
"go-common/library/net/http/blademaster"
)
type Client struct {
conf *blademaster.ClientConfig
bvcHost string
mock string
}
func (c *Client) getConf() *blademaster.ClientConfig {
return c.conf
}
func (c *Client) getBvcHost(def string) string {
if c.bvcHost == "" {
return def
}
return c.bvcHost
}
func New(c *blademaster.ClientConfig, bvcHost string, mock string) *Client {
return &Client{
conf: c,
bvcHost: bvcHost,
mock: mock,
}
}