Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Guber ¶
type Guber struct {
// contains filtered or unexported fields
}
func (*Guber) CloseWithErr ¶
CloseWithErr is a shortcut for m.sc.SendCloseSignal
func (*Guber) GetSafeClose ¶
func (g *Guber) GetSafeClose() *safe_close.SafeClose
type NacosClient ¶
type NacosClient struct {
NacosConfig *Nacos
AccessToken string
TokenTtl int64
LastLogin int64
Cache map[string][]string
Env string
}
func NewNacosClient ¶
func NewNacosClient(nacosConfig *Nacos, env string) *NacosClient
func (*NacosClient) GetNacosService ¶
func (*NacosClient) Login ¶
func (n *NacosClient) Login() error
curl -X POST '127.0.0.1:8848/nacos/v1/auth/login' -d 'username=nacos&password=nacos' login
func (*NacosClient) Run ¶
func (n *NacosClient) Run(g *Guber) error
Click to show internal directories.
Click to hide internal directories.