Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoolMemberStatus error: Found unexpected json pair at configuration item xxx The json pair is "fqdn":{}. #130

Open
keep-vip opened this issue Jul 26, 2024 · 0 comments

Comments

@keep-vip
Copy link

keep-vip commented Jul 26, 2024

type Node struct {
Name string json:"name,omitempty"
AppService string json:"appService,omitempty"
Partition string json:"partition,omitempty"
FullPath string json:"fullPath,omitempty"
Generation int json:"generation,omitempty"
Address string json:"address,omitempty"
ConnectionLimit int json:"connectionLimit,omitempty"
DynamicRatio int json:"dynamicRatio,omitempty"
Logging string json:"logging,omitempty"
Monitor string json:"monitor,omitempty"
RateLimit string json:"rateLimit,omitempty"
Ratio int json:"ratio,omitempty"
Session string json:"session,omitempty"
State string json:"state,omitempty"
FQDN struct {
AddressFamily string json:"addressFamily,omitempty"
AutoPopulate string json:"autopopulate,omitempty"
DownInterval int json:"downInterval,omitempty"
Interval string json:"interval,omitempty"
Name string json:"tmName,omitempty"
} json:"fqdn,omitempty"
}

FQDN 字段序列化时, 不认为是非零值。
修改为

FQDN *struct {
AddressFamily string json:"addressFamily,omitempty"
AutoPopulate string json:"autopopulate,omitempty"
DownInterval int json:"downInterval,omitempty"
Interval string json:"interval,omitempty"
Name string json:"tmName,omitempty"
} json:"fqdn,omitempty"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant