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 {
|
||||
ServerAddr string
|
||||
Token string
|
||||
ClientName string
|
||||
User string
|
||||
CertDir string
|
||||
AcmeEmail string
|
||||
DnsServer string
|
||||
ServerAddr string `json:"serverAddr,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
ClientName string `json:"clientName,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
CertDir string `json:"certDir,omitempty"`
|
||||
AcmeEmail string `json:"acmeEmail,omitempty"`
|
||||
DnsServer string `json:"dnsServer,omitempty"`
|
||||
}
|
||||
|
||||
func NewClient(config *ClientConfig) *Client {
|
||||
|
Loading…
Reference in New Issue
Block a user