Documentation ¶
Index ¶
- func Adapt(rpcClient rpc_client.Client) manager.Manager
- func NewClient(socketPath string) (manager.Manager, error)
- type EnforceRequest
- type EnforceResponse
- type InspectRequest
- type InspectResponse
- type IsLeaderRequest
- type IsLeaderResponse
- type LeaderLocationRequest
- type LeaderLocationResponse
- type Manager
- func (p *Manager) Enforce(_ *http.Request, req *EnforceRequest, resp *EnforceResponse) error
- func (p *Manager) ImplementedInterface() spi.InterfaceSpec
- func (p *Manager) Inspect(_ *http.Request, req *InspectRequest, resp *InspectResponse) error
- func (p *Manager) IsLeader(_ *http.Request, req *IsLeaderRequest, resp *IsLeaderResponse) error
- func (p *Manager) LeaderLocation(_ *http.Request, req *LeaderLocationRequest, resp *LeaderLocationResponse) error
- func (p *Manager) Terminate(_ *http.Request, req *TerminateRequest, resp *TerminateResponse) error
- func (p *Manager) Types() []string
- type TerminateRequest
- type TerminateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnforceRequest ¶
EnforceRequest is the rpc request
type InspectResponse ¶
InspectResponse is the rpc response
type IsLeaderResponse ¶
type IsLeaderResponse struct {
Leader bool
}
IsLeaderResponse is the rpc response
type LeaderLocationRequest ¶
type LeaderLocationRequest struct { }
LeaderLocationRequest is the rpc request
type LeaderLocationResponse ¶
LeaderLocationResponse is the rpc response
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the exported type for json-rpc
func PluginServer ¶
PluginServer returns a Manager that conforms to the net/rpc rpc call convention.
func (*Manager) Enforce ¶
func (p *Manager) Enforce(_ *http.Request, req *EnforceRequest, resp *EnforceResponse) error
Enforce is the rpc method for Manager.Enforce
func (*Manager) ImplementedInterface ¶
func (p *Manager) ImplementedInterface() spi.InterfaceSpec
ImplementedInterface returns the interface implemented by this RPC service.
func (*Manager) Inspect ¶
func (p *Manager) Inspect(_ *http.Request, req *InspectRequest, resp *InspectResponse) error
Inspect is the rpc method for Manager.Inspect
func (*Manager) IsLeader ¶
func (p *Manager) IsLeader(_ *http.Request, req *IsLeaderRequest, resp *IsLeaderResponse) error
IsLeader returns information about leadership status for this manager.
func (*Manager) LeaderLocation ¶
func (p *Manager) LeaderLocation(_ *http.Request, req *LeaderLocationRequest, resp *LeaderLocationResponse) error
LeaderLocation returns the location of the leader
func (*Manager) Terminate ¶
func (p *Manager) Terminate(_ *http.Request, req *TerminateRequest, resp *TerminateResponse) error
Terminate is the rpc method for Manager.Terminate
type TerminateRequest ¶
TerminateRequest is the rpc request