v3

package
v3.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

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) Delete

func (s *Service) Delete(req *restful.Request, resp *restful.Response)

func (*Service) Do

func (s *Service) Do(req *restful.Request, resp *restful.Response)

func (*Service) Get

func (s *Service) Get(req *restful.Request, resp *restful.Response)

func (*Service) Post

func (s *Service) Post(req *restful.Request, resp *restful.Response)

func (*Service) Put

func (s *Service) Put(req *restful.Request, resp *restful.Response)

func (*Service) URLFilterChan

func (s *Service) URLFilterChan(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

func (*Service) V3Healthz

func (s *Service) V3Healthz() *restful.WebService

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)

func (*V3URLPath) WithEvent

func (u *V3URLPath) WithEvent(req *restful.Request) (isHit bool)

func (*V3URLPath) WithHost

func (u *V3URLPath) WithHost(req *restful.Request) (isHit bool)

func (*V3URLPath) WithProc

func (u *V3URLPath) WithProc(req *restful.Request) (isHit bool)

func (*V3URLPath) WithTopo

func (u *V3URLPath) WithTopo(req *restful.Request) (isHit bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL