()
| 109 | } |
| 110 | |
| 111 | func (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 | |
| 126 | func (m *Server) handlerWithInterceptor() http.Handler { |
| 127 | return http.HandlerFunc( |
no test coverage detected