github.com/infraboard/keyauth@v0.8.1/client/config.go (about) 1 package client 2 3 // NewDefaultConfig todo 4 func NewDefaultConfig() *Config { 5 return &Config{ 6 address: "localhost:18050", 7 Authentication: &Authentication{}, 8 } 9 } 10 11 // Config 客户端配置 12 type Config struct { 13 address string 14 *Authentication 15 } 16 17 // SetAddress todo 18 func (c *Config) SetAddress(addr string) { 19 c.address = addr 20 } 21 22 // Address 地址 23 func (c *Config) Address() string { 24 return c.address 25 }