services_providers

package
v0.0.14-r11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

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
}

func MakeConf

func MakeConf(ctx context.Context, log *zap.Logger) MonitoringRoutineConf

type Routine

type Routine struct {
	Name     string
	LastExec string
	Running  bool
}

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 (*ServicesProviderServer) Delete

func (*ServicesProviderServer) Get

func (s *ServicesProviderServer) Get(ctx context.Context, request *sppb.GetRequest) (res *sppb.ServicesProvider, err error)

func (*ServicesProviderServer) List

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 (*ServicesProviderServer) UnregisterExtentions

func (s *ServicesProviderServer) UnregisterExtentions(ctx context.Context, log *zap.Logger, sp *graph.ServicesProvider)

func (*ServicesProviderServer) Update

Directories

Path Synopsis
Package proto is a reverse proxy.
Package proto is a reverse proxy.

Jump to

Keyboard shortcuts

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