Documentation ¶
Overview ¶
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this 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.
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this 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 ¶
- type MonitoringRoutineConf
- type Routine
- type ServicesProviderServer
- func (s *ServicesProviderServer) Create(ctx context.Context, req *sppb.ServicesProvider) (res *sppb.ServicesProvider, err error)
- func (s *ServicesProviderServer) Delete(ctx context.Context, req *sppb.DeleteRequest) (res *sppb.DeleteResponse, err error)
- func (s *ServicesProviderServer) Get(ctx context.Context, request *sppb.GetRequest) (res *sppb.ServicesProvider, err error)
- func (s *ServicesProviderServer) List(ctx context.Context, req *sppb.ListRequest) (res *sppb.ListResponse, err error)
- func (s *ServicesProviderServer) ListExtentions(ctx context.Context, req *sppb.ListRequest) (res *sppb.ListExtentionsResponse, err error)
- func (s *ServicesProviderServer) MonitoringRoutine(ctx context.Context)
- func (s *ServicesProviderServer) MonitoringRoutineState() Routine
- func (s *ServicesProviderServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)
- func (s *ServicesProviderServer) RegisterExtentionServer(type_key string, client sppb.ServicesProvidersExtentionsServiceClient)
- func (s *ServicesProviderServer) Test(ctx context.Context, req *sppb.ServicesProvider) (*sppb.TestResponse, error)
- func (s *ServicesProviderServer) UnregisterExtentions(ctx context.Context, log *zap.Logger, sp *graph.ServicesProvider)
- func (s *ServicesProviderServer) Update(ctx context.Context, req *sppb.ServicesProvider) (res *sppb.ServicesProvider, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonitoringRoutineConf ¶
type MonitoringRoutineConf struct {
Frequency int `json:"freq"` // Frequency in Seconds
}
type ServicesProviderServer ¶
type ServicesProviderServer struct { sppb.UnimplementedServicesProvidersServiceServer // contains filtered or unexported fields }
func NewServicesProviderServer ¶
func NewServicesProviderServer(log *zap.Logger, db driver.Database, gc stpb.StatesServiceClient) *ServicesProviderServer
func (*ServicesProviderServer) Create ¶
func (s *ServicesProviderServer) Create(ctx context.Context, req *sppb.ServicesProvider) (res *sppb.ServicesProvider, err error)
func (*ServicesProviderServer) Delete ¶
func (s *ServicesProviderServer) Delete(ctx context.Context, req *sppb.DeleteRequest) (res *sppb.DeleteResponse, err error)
func (*ServicesProviderServer) Get ¶
func (s *ServicesProviderServer) Get(ctx context.Context, request *sppb.GetRequest) (res *sppb.ServicesProvider, err error)
func (*ServicesProviderServer) List ¶
func (s *ServicesProviderServer) List(ctx context.Context, req *sppb.ListRequest) (res *sppb.ListResponse, err error)
func (*ServicesProviderServer) ListExtentions ¶
func (s *ServicesProviderServer) ListExtentions(ctx context.Context, req *sppb.ListRequest) (res *sppb.ListExtentionsResponse, err error)
func (*ServicesProviderServer) MonitoringRoutine ¶
func (s *ServicesProviderServer) MonitoringRoutine(ctx context.Context)
func (*ServicesProviderServer) MonitoringRoutineState ¶
func (s *ServicesProviderServer) MonitoringRoutineState() Routine
func (*ServicesProviderServer) RegisterDriver ¶
func (s *ServicesProviderServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)
func (*ServicesProviderServer) RegisterExtentionServer ¶
func (s *ServicesProviderServer) RegisterExtentionServer(type_key string, client sppb.ServicesProvidersExtentionsServiceClient)
func (*ServicesProviderServer) Test ¶
func (s *ServicesProviderServer) Test(ctx context.Context, req *sppb.ServicesProvider) (*sppb.TestResponse, error)
func (*ServicesProviderServer) UnregisterExtentions ¶
func (s *ServicesProviderServer) UnregisterExtentions(ctx context.Context, log *zap.Logger, sp *graph.ServicesProvider)
func (*ServicesProviderServer) Update ¶
func (s *ServicesProviderServer) Update(ctx context.Context, req *sppb.ServicesProvider) (res *sppb.ServicesProvider, err error)