Documentation ¶
Index ¶
- type HttpClient
- type RequestType
- type Service
- func (s *Service) Delete(req *restful.Request, resp *restful.Response)
- func (s *Service) Do(req *restful.Request, resp *restful.Response)
- func (s *Service) Get(req *restful.Request, resp *restful.Response)
- func (s *Service) Post(req *restful.Request, resp *restful.Response)
- func (s *Service) Put(req *restful.Request, resp *restful.Response)
- func (s *Service) URLFilterChan(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func (s *Service) V3Healthz() *restful.WebService
- func (s *Service) V3WebService() *restful.WebService
- type V3URLPath
- func (u V3URLPath) FilterChain(req *restful.Request) (RequestType, error)
- func (u *V3URLPath) WithEvent(req *restful.Request) (isHit bool)
- func (u *V3URLPath) WithHost(req *restful.Request) (isHit bool)
- func (u *V3URLPath) WithProc(req *restful.Request) (isHit bool)
- func (u *V3URLPath) WithTopo(req *restful.Request) (isHit bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestType ¶
type RequestType string
const ( UnknownType RequestType = "unknown" TopoType RequestType = "topo" HostType RequestType = "host" ProcType RequestType = "proc" EventType RequestType = "event" )
type Service ¶
type Service struct { Engine *backbone.Engine Client HttpClient Disc discovery.DiscoveryInterface }
func (*Service) URLFilterChan ¶
func (s *Service) URLFilterChan(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func (*Service) V3WebService ¶
func (s *Service) V3WebService() *restful.WebService
type V3URLPath ¶
type V3URLPath string
func (V3URLPath) FilterChain ¶
func (u V3URLPath) FilterChain(req *restful.Request) (RequestType, error)
Click to show internal directories.
Click to hide internal directories.