MCPcopy Index your code
hub / github.com/dearcode/candy / logout

Function logout

candy.go:86–98  ·  view source on GitHub ↗
(c *candy.CandyClient, reader *bufio.Reader)

Source from the content-addressed store, hash-verified

84}
85
86func logout(c *candy.CandyClient, reader *bufio.Reader) {
87 fmt.Println("----------------注销---------------------------")
88 defer endSection()
89
90 err := c.Logout()
91 if err != nil {
92 e := candy.ErrorParse(err.Error())
93 log.Errorf("Logout code:%v error:%v", e.Code, e.Msg)
94 return
95 }
96
97 log.Debugf("Logout success")
98}
99
100func updateUserInfo(c *candy.CandyClient, reader *bufio.Reader) {
101 fmt.Println("----------------更新用户信息-------------------")

Callers 1

mainFunction · 0.85

Calls 3

endSectionFunction · 0.85
LogoutMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected