Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func DumpAllAdaptors()
- func GetFactories() []string
- func NewAdaptor(adaptorOptions *adaptors.AdaptorOptions) (adaptors.Adaptor, error)
- func RegisterAdaptor(name string, factory adaptors.AdaptorFactory)
- type RuleChainService
- func (s *RuleChainService) CheckRuleChain(ctx context.Context, in *pb.CheckRuleChainRequest) (*pb.CheckRuleChainResponse, error)
- func (s *RuleChainService) CreateRuleChain(ctx context.Context, in *pb.CreateRuleChainRequest) (*pb.CreateRuleChainResponse, error)
- func (s *RuleChainService) DeleteRuleChain(ctx context.Context, in *pb.DeleteRuleChainRequest) (*pb.DeleteRuleChainResponse, error)
- func (s *RuleChainService) GetNodeConfigs(ctx context.Context, in *pb.GetNodeConfigsRequest) (*pb.GetNodeConfigsResponse, error)
- func (s *RuleChainService) GetRuleChain(ctx context.Context, in *pb.GetRuleChainRequest) (*pb.GetRuleChainResponse, error)
- func (s *RuleChainService) GetRuleChains(ctx context.Context, in *pb.GetRuleChainsRequest) (*pb.GetRuleChainsResponse, error)
- func (s *RuleChainService) StartRuleChain(ctx context.Context, in *pb.StartRuleChainRequest) (*pb.StartRuleChainResponse, error)
- func (s *RuleChainService) StopRuleChain(ctx context.Context, in *pb.StopRuleChainRequest) (*pb.StopRuleChainResponse, error)
- func (s *RuleChainService) UpdateRuleChain(ctx context.Context, in *pb.UpdateRuleChainRequest) (*pb.UpdateRuleChainResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdaptor ¶
func NewAdaptor(adaptorOptions *adaptors.AdaptorOptions) (adaptors.Adaptor, error)
NewAdaptor create a new adaptor with specified options
func RegisterAdaptor ¶
func RegisterAdaptor(name string, factory adaptors.AdaptorFactory)
RegisterAdaptor register new adaptor facotory
Types ¶
type RuleChainService ¶
type RuleChainService struct {
// contains filtered or unexported fields
}
RuleChainService implement all rulechain interface
func NewRuleChainService ¶
func NewRuleChainService(servingOptions *options.ServingOptions) *RuleChainService
NewRuleChainService return rulechain service object
func (*RuleChainService) CheckRuleChain ¶
func (s *RuleChainService) CheckRuleChain(ctx context.Context, in *pb.CheckRuleChainRequest) (*pb.CheckRuleChainResponse, error)
CheckRuleChain check wether the rule chain is valid
func (*RuleChainService) CreateRuleChain ¶
func (s *RuleChainService) CreateRuleChain(ctx context.Context, in *pb.CreateRuleChainRequest) (*pb.CreateRuleChainResponse, error)
CreateRuleChain add a new rulechain into repository
func (*RuleChainService) DeleteRuleChain ¶
func (s *RuleChainService) DeleteRuleChain(ctx context.Context, in *pb.DeleteRuleChainRequest) (*pb.DeleteRuleChainResponse, error)
DeleteRuleChain remove a rulechain from rulechain service In the cluster environmnent, the peer nodes should be notified
func (*RuleChainService) GetNodeConfigs ¶
func (s *RuleChainService) GetNodeConfigs(ctx context.Context, in *pb.GetNodeConfigsRequest) (*pb.GetNodeConfigsResponse, error)
GetNodeConfigs return all nodes' configs
func (*RuleChainService) GetRuleChain ¶
func (s *RuleChainService) GetRuleChain(ctx context.Context, in *pb.GetRuleChainRequest) (*pb.GetRuleChainResponse, error)
GetRuleChian return specified rulechain
func (*RuleChainService) GetRuleChains ¶
func (s *RuleChainService) GetRuleChains(ctx context.Context, in *pb.GetRuleChainsRequest) (*pb.GetRuleChainsResponse, error)
GetRuleChains returns user's all rulechain informations
func (*RuleChainService) StartRuleChain ¶
func (s *RuleChainService) StartRuleChain(ctx context.Context, in *pb.StartRuleChainRequest) (*pb.StartRuleChainResponse, error)
StartRuleChain start a rule chain to receive incoming data
func (*RuleChainService) StopRuleChain ¶
func (s *RuleChainService) StopRuleChain(ctx context.Context, in *pb.StopRuleChainRequest) (*pb.StopRuleChainResponse, error)
StopRuleChain stop a rule chain to receive incoming data
func (*RuleChainService) UpdateRuleChain ¶
func (s *RuleChainService) UpdateRuleChain(ctx context.Context, in *pb.UpdateRuleChainRequest) (*pb.UpdateRuleChainResponse, error)
UpdateRuleChain update an existed rule chain
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
amqp
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
grpc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
http
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
mqtt
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
rabbitmq
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
websocket
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. |