MCPcopy Index your code
hub / github.com/cubefs/cubefs / handleFunctions

Method handleFunctions

authnode/http_server.go:111–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (m *Server) handleFunctions() {
112 http.HandleFunc(proto.ClientGetTicket, m.getTicket)
113 http.Handle(proto.AdminCreateKey, m.handlerWithInterceptor())
114 http.Handle(proto.AdminGetKey, m.handlerWithInterceptor())
115 http.Handle(proto.AdminDeleteKey, m.handlerWithInterceptor())
116 http.Handle(proto.AdminAddCaps, m.handlerWithInterceptor())
117 http.Handle(proto.AdminDeleteCaps, m.handlerWithInterceptor())
118 http.Handle(proto.AdminGetCaps, m.handlerWithInterceptor())
119 http.Handle(proto.AdminAddRaftNode, m.handlerWithInterceptor())
120 http.Handle(proto.AdminRemoveRaftNode, m.handlerWithInterceptor())
121 http.Handle(proto.OSAddCaps, m.handlerWithInterceptor())
122 http.Handle(proto.OSDeleteCaps, m.handlerWithInterceptor())
123 http.Handle(proto.OSGetCaps, m.handlerWithInterceptor())
124}
125
126func (m *Server) handlerWithInterceptor() http.Handler {
127 return http.HandlerFunc(

Callers 1

startHTTPServiceMethod · 0.95

Calls 2

HandleMethod · 0.45

Tested by

no test coverage detected