mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Set some JSON encoding options
This commit is contained in:
parent
8e743ad304
commit
dd7bbf7314
14
client.go
14
client.go
@ -34,13 +34,13 @@ type Client struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ClientConfig struct {
|
type ClientConfig struct {
|
||||||
ServerAddr string
|
ServerAddr string `json:"serverAddr,omitempty"`
|
||||||
Token string
|
Token string `json:"token,omitempty"`
|
||||||
ClientName string
|
ClientName string `json:"clientName,omitempty"`
|
||||||
User string
|
User string `json:"user,omitempty"`
|
||||||
CertDir string
|
CertDir string `json:"certDir,omitempty"`
|
||||||
AcmeEmail string
|
AcmeEmail string `json:"acmeEmail,omitempty"`
|
||||||
DnsServer string
|
DnsServer string `json:"dnsServer,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(config *ClientConfig) *Client {
|
func NewClient(config *ClientConfig) *Client {
|
||||||
|
Loading…
Reference in New Issue
Block a user