Documentation ¶
Index ¶
- Constants
- Variables
- func NewSRPCControllerBusServiceHandler(impl SRPCControllerBusServiceServer, serviceID string) srpc.Handler
- func SRPCRegisterControllerBusService(mux srpc.Mux, impl SRPCControllerBusServiceServer) error
- type API
- type Config
- func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Config) CloneVT() *Config
- func (this *Config) EqualMessageVT(thatMsg any) bool
- func (this *Config) EqualVT(that *Config) bool
- func (x *Config) GetEnableExecController() bool
- func (x *Config) MarshalJSON() ([]byte, error)
- func (x *Config) MarshalProtoJSON(s *json.MarshalState)
- func (x *Config) MarshalProtoText() string
- func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *Config) MarshalVT() (dAtA []byte, err error)
- func (*Config) ProtoMessage()
- func (x *Config) Reset()
- func (m *Config) SizeVT() (n int)
- func (x *Config) String() string
- func (x *Config) UnmarshalJSON(b []byte) error
- func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Config) UnmarshalVT(dAtA []byte) error
- type GetBusInfoRequest
- func (m *GetBusInfoRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetBusInfoRequest) CloneVT() *GetBusInfoRequest
- func (this *GetBusInfoRequest) EqualMessageVT(thatMsg any) bool
- func (this *GetBusInfoRequest) EqualVT(that *GetBusInfoRequest) bool
- func (x *GetBusInfoRequest) MarshalJSON() ([]byte, error)
- func (x *GetBusInfoRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetBusInfoRequest) MarshalProtoText() string
- func (m *GetBusInfoRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetBusInfoRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetBusInfoRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetBusInfoRequest) ProtoMessage()
- func (x *GetBusInfoRequest) Reset()
- func (m *GetBusInfoRequest) SizeVT() (n int)
- func (x *GetBusInfoRequest) String() string
- func (x *GetBusInfoRequest) UnmarshalJSON(b []byte) error
- func (x *GetBusInfoRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetBusInfoRequest) UnmarshalVT(dAtA []byte) error
- type GetBusInfoResponse
- func (m *GetBusInfoResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetBusInfoResponse) CloneVT() *GetBusInfoResponse
- func (this *GetBusInfoResponse) EqualMessageVT(thatMsg any) bool
- func (this *GetBusInfoResponse) EqualVT(that *GetBusInfoResponse) bool
- func (x *GetBusInfoResponse) GetRunningControllers() []*controller.Info
- func (x *GetBusInfoResponse) GetRunningDirectives() []*directive.DirectiveState
- func (x *GetBusInfoResponse) MarshalJSON() ([]byte, error)
- func (x *GetBusInfoResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetBusInfoResponse) MarshalProtoText() string
- func (m *GetBusInfoResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetBusInfoResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetBusInfoResponse) MarshalVT() (dAtA []byte, err error)
- func (b *GetBusInfoResponse) PrintPrettyStatus() []byte
- func (*GetBusInfoResponse) ProtoMessage()
- func (x *GetBusInfoResponse) Reset()
- func (m *GetBusInfoResponse) SizeVT() (n int)
- func (x *GetBusInfoResponse) String() string
- func (x *GetBusInfoResponse) UnmarshalJSON(b []byte) error
- func (x *GetBusInfoResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetBusInfoResponse) UnmarshalVT(dAtA []byte) error
- type SRPCControllerBusServiceClient
- type SRPCControllerBusServiceHandler
- func (SRPCControllerBusServiceHandler) GetMethodIDs() []string
- func (d *SRPCControllerBusServiceHandler) GetServiceID() string
- func (d *SRPCControllerBusServiceHandler) InvokeMethod(serviceID, methodID string, strm srpc.Stream) (bool, error)
- func (SRPCControllerBusServiceHandler) InvokeMethod_ExecController(impl SRPCControllerBusServiceServer, strm srpc.Stream) error
- func (SRPCControllerBusServiceHandler) InvokeMethod_GetBusInfo(impl SRPCControllerBusServiceServer, strm srpc.Stream) error
- type SRPCControllerBusServiceServer
- type SRPCControllerBusServiceUnimplementedServer
- type SRPCControllerBusService_ExecControllerClient
- type SRPCControllerBusService_ExecControllerStream
- type SRPCControllerBusService_GetBusInfoStream
Constants ¶
const SRPCControllerBusServiceServiceID = "bus.api.ControllerBusService"
Variables ¶
var ErrExecControllerDisabled = errors.New("exec controller is disabled on this api")
ErrExecControllerDisabled is returned if exec controller isn't enabled.
Functions ¶
func NewSRPCControllerBusServiceHandler ¶ added in v0.16.1
func NewSRPCControllerBusServiceHandler(impl SRPCControllerBusServiceServer, serviceID string) srpc.Handler
NewSRPCControllerBusServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: bus.api.ControllerBusService
func SRPCRegisterControllerBusService ¶ added in v0.11.0
func SRPCRegisterControllerBusService(mux srpc.Mux, impl SRPCControllerBusServiceServer) error
SRPCRegisterControllerBusService registers the implementation with the mux. Uses the default serviceID: bus.api.ControllerBusService
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the rpc API.
func (*API) ExecController ¶
func (a *API) ExecController( req *ce.ExecControllerRequest, server SRPCControllerBusService_ExecControllerStream, ) error
ExecController executes a controller configuration on the bus.
func (*API) GetBusInfo ¶
func (a *API) GetBusInfo( ctx context.Context, req *GetBusInfoRequest, ) (*GetBusInfoResponse, error)
GetBusInfo requests information about the controller bus.
type Config ¶
type Config struct { // EnableExecController enables the exec controller API. EnableExecController bool `protobuf:"varint,1,opt,name=enable_exec_controller,json=enableExecController,proto3" json:"enableExecController,omitempty"` // contains filtered or unexported fields }
Config are configuration arguments.
func (*Config) CloneMessageVT ¶ added in v0.23.6
func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Config) EqualMessageVT ¶ added in v0.23.6
func (*Config) GetEnableExecController ¶
func (*Config) MarshalJSON ¶ added in v0.41.0
MarshalJSON marshals the Config to JSON.
func (*Config) MarshalProtoJSON ¶ added in v0.41.0
func (x *Config) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Config message to JSON.
func (*Config) MarshalProtoText ¶ added in v0.42.0
func (*Config) MarshalToSizedBufferVT ¶ added in v0.10.0
func (*Config) MarshalToVT ¶ added in v0.10.0
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) UnmarshalJSON ¶ added in v0.41.0
UnmarshalJSON unmarshals the Config from JSON.
func (*Config) UnmarshalProtoJSON ¶ added in v0.41.0
func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Config message from JSON.
func (*Config) UnmarshalVT ¶ added in v0.10.0
type GetBusInfoRequest ¶
type GetBusInfoRequest struct {
// contains filtered or unexported fields
}
GetBusInfoRequest is the request type for GetBusInfo.
func (*GetBusInfoRequest) CloneMessageVT ¶ added in v0.23.6
func (m *GetBusInfoRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetBusInfoRequest) CloneVT ¶ added in v0.12.3
func (m *GetBusInfoRequest) CloneVT() *GetBusInfoRequest
func (*GetBusInfoRequest) EqualMessageVT ¶ added in v0.23.6
func (this *GetBusInfoRequest) EqualMessageVT(thatMsg any) bool
func (*GetBusInfoRequest) EqualVT ¶ added in v0.10.0
func (this *GetBusInfoRequest) EqualVT(that *GetBusInfoRequest) bool
func (*GetBusInfoRequest) MarshalJSON ¶ added in v0.41.0
func (x *GetBusInfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GetBusInfoRequest to JSON.
func (*GetBusInfoRequest) MarshalProtoJSON ¶ added in v0.41.0
func (x *GetBusInfoRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GetBusInfoRequest message to JSON.
func (*GetBusInfoRequest) MarshalProtoText ¶ added in v0.42.0
func (x *GetBusInfoRequest) MarshalProtoText() string
func (*GetBusInfoRequest) MarshalToSizedBufferVT ¶ added in v0.10.0
func (m *GetBusInfoRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetBusInfoRequest) MarshalToVT ¶ added in v0.10.0
func (m *GetBusInfoRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetBusInfoRequest) MarshalVT ¶ added in v0.10.0
func (m *GetBusInfoRequest) MarshalVT() (dAtA []byte, err error)
func (*GetBusInfoRequest) ProtoMessage ¶
func (*GetBusInfoRequest) ProtoMessage()
func (*GetBusInfoRequest) Reset ¶
func (x *GetBusInfoRequest) Reset()
func (*GetBusInfoRequest) SizeVT ¶ added in v0.10.0
func (m *GetBusInfoRequest) SizeVT() (n int)
func (*GetBusInfoRequest) String ¶
func (x *GetBusInfoRequest) String() string
func (*GetBusInfoRequest) UnmarshalJSON ¶ added in v0.41.0
func (x *GetBusInfoRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GetBusInfoRequest from JSON.
func (*GetBusInfoRequest) UnmarshalProtoJSON ¶ added in v0.41.0
func (x *GetBusInfoRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GetBusInfoRequest message from JSON.
func (*GetBusInfoRequest) UnmarshalVT ¶ added in v0.10.0
func (m *GetBusInfoRequest) UnmarshalVT(dAtA []byte) error
type GetBusInfoResponse ¶
type GetBusInfoResponse struct { // RunningControllers is the list of running controllers. RunningControllers []*controller.Info `protobuf:"bytes,1,rep,name=running_controllers,json=runningControllers,proto3" json:"runningControllers,omitempty"` // RunningDirectives is the list of running directives. RunningDirectives []*directive.DirectiveState `protobuf:"bytes,2,rep,name=running_directives,json=runningDirectives,proto3" json:"runningDirectives,omitempty"` // contains filtered or unexported fields }
GetBusInfoResponse is the response type for GetBusInfo.
func (*GetBusInfoResponse) CloneMessageVT ¶ added in v0.23.6
func (m *GetBusInfoResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetBusInfoResponse) CloneVT ¶ added in v0.12.3
func (m *GetBusInfoResponse) CloneVT() *GetBusInfoResponse
func (*GetBusInfoResponse) EqualMessageVT ¶ added in v0.23.6
func (this *GetBusInfoResponse) EqualMessageVT(thatMsg any) bool
func (*GetBusInfoResponse) EqualVT ¶ added in v0.10.0
func (this *GetBusInfoResponse) EqualVT(that *GetBusInfoResponse) bool
func (*GetBusInfoResponse) GetRunningControllers ¶
func (x *GetBusInfoResponse) GetRunningControllers() []*controller.Info
func (*GetBusInfoResponse) GetRunningDirectives ¶
func (x *GetBusInfoResponse) GetRunningDirectives() []*directive.DirectiveState
func (*GetBusInfoResponse) MarshalJSON ¶ added in v0.41.0
func (x *GetBusInfoResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GetBusInfoResponse to JSON.
func (*GetBusInfoResponse) MarshalProtoJSON ¶ added in v0.41.0
func (x *GetBusInfoResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GetBusInfoResponse message to JSON.
func (*GetBusInfoResponse) MarshalProtoText ¶ added in v0.42.0
func (x *GetBusInfoResponse) MarshalProtoText() string
func (*GetBusInfoResponse) MarshalToSizedBufferVT ¶ added in v0.10.0
func (m *GetBusInfoResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetBusInfoResponse) MarshalToVT ¶ added in v0.10.0
func (m *GetBusInfoResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetBusInfoResponse) MarshalVT ¶ added in v0.10.0
func (m *GetBusInfoResponse) MarshalVT() (dAtA []byte, err error)
func (*GetBusInfoResponse) PrintPrettyStatus ¶
func (b *GetBusInfoResponse) PrintPrettyStatus() []byte
PrintPrettyStatus prints bus info as a pretty status output.
func (*GetBusInfoResponse) ProtoMessage ¶
func (*GetBusInfoResponse) ProtoMessage()
func (*GetBusInfoResponse) Reset ¶
func (x *GetBusInfoResponse) Reset()
func (*GetBusInfoResponse) SizeVT ¶ added in v0.10.0
func (m *GetBusInfoResponse) SizeVT() (n int)
func (*GetBusInfoResponse) String ¶
func (x *GetBusInfoResponse) String() string
func (*GetBusInfoResponse) UnmarshalJSON ¶ added in v0.41.0
func (x *GetBusInfoResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GetBusInfoResponse from JSON.
func (*GetBusInfoResponse) UnmarshalProtoJSON ¶ added in v0.41.0
func (x *GetBusInfoResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GetBusInfoResponse message from JSON.
func (*GetBusInfoResponse) UnmarshalVT ¶ added in v0.10.0
func (m *GetBusInfoResponse) UnmarshalVT(dAtA []byte) error
type SRPCControllerBusServiceClient ¶ added in v0.11.0
type SRPCControllerBusServiceClient interface { SRPCClient() srpc.Client GetBusInfo(ctx context.Context, in *GetBusInfoRequest) (*GetBusInfoResponse, error) ExecController(ctx context.Context, in *exec.ExecControllerRequest) (SRPCControllerBusService_ExecControllerClient, error) }
func NewSRPCControllerBusServiceClient ¶ added in v0.11.0
func NewSRPCControllerBusServiceClient(cc srpc.Client) SRPCControllerBusServiceClient
func NewSRPCControllerBusServiceClientWithServiceID ¶ added in v0.16.1
func NewSRPCControllerBusServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCControllerBusServiceClient
type SRPCControllerBusServiceHandler ¶ added in v0.11.0
type SRPCControllerBusServiceHandler struct {
// contains filtered or unexported fields
}
func (SRPCControllerBusServiceHandler) GetMethodIDs ¶ added in v0.11.0
func (SRPCControllerBusServiceHandler) GetMethodIDs() []string
func (*SRPCControllerBusServiceHandler) GetServiceID ¶ added in v0.11.0
func (d *SRPCControllerBusServiceHandler) GetServiceID() string
func (*SRPCControllerBusServiceHandler) InvokeMethod ¶ added in v0.11.0
func (SRPCControllerBusServiceHandler) InvokeMethod_ExecController ¶ added in v0.11.0
func (SRPCControllerBusServiceHandler) InvokeMethod_ExecController(impl SRPCControllerBusServiceServer, strm srpc.Stream) error
func (SRPCControllerBusServiceHandler) InvokeMethod_GetBusInfo ¶ added in v0.11.0
func (SRPCControllerBusServiceHandler) InvokeMethod_GetBusInfo(impl SRPCControllerBusServiceServer, strm srpc.Stream) error
type SRPCControllerBusServiceServer ¶ added in v0.11.0
type SRPCControllerBusServiceServer interface { GetBusInfo(context.Context, *GetBusInfoRequest) (*GetBusInfoResponse, error) ExecController(*exec.ExecControllerRequest, SRPCControllerBusService_ExecControllerStream) error }
type SRPCControllerBusServiceUnimplementedServer ¶ added in v0.11.0
type SRPCControllerBusServiceUnimplementedServer struct{}
func (*SRPCControllerBusServiceUnimplementedServer) ExecController ¶ added in v0.11.0
func (s *SRPCControllerBusServiceUnimplementedServer) ExecController(*exec.ExecControllerRequest, SRPCControllerBusService_ExecControllerStream) error
func (*SRPCControllerBusServiceUnimplementedServer) GetBusInfo ¶ added in v0.11.0
func (s *SRPCControllerBusServiceUnimplementedServer) GetBusInfo(context.Context, *GetBusInfoRequest) (*GetBusInfoResponse, error)
type SRPCControllerBusService_ExecControllerClient ¶ added in v0.11.0
type SRPCControllerBusService_ExecControllerClient interface { srpc.Stream Recv() (*exec.ExecControllerResponse, error) RecvTo(*exec.ExecControllerResponse) error }
type SRPCControllerBusService_ExecControllerStream ¶ added in v0.11.0
type SRPCControllerBusService_ExecControllerStream interface { srpc.Stream Send(*exec.ExecControllerResponse) error SendAndClose(*exec.ExecControllerResponse) error }