server

package
v0.0.0-r7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 22 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

View Source
var (
	DRIVER_TYPE      string
	MONITORING_REDIS = "MONITORING"
)

Functions

func Lazy

func Lazy[T any](f func() T) func() T

func SetDriverType

func SetDriverType(_type string)

Types

type DriverServiceServer

type DriverServiceServer struct {
	pb.UnimplementedDriverServiceServer

	HandlePublishRecords RecordsPublisherFunc
	// contains filtered or unexported fields
}

func NewDriverServiceServer

func NewDriverServiceServer(log *zap.Logger, key []byte, rdb *redis.Client) *DriverServiceServer

func (*DriverServiceServer) Down

func (*DriverServiceServer) GetType

func (*DriverServiceServer) Invoke

func (s *DriverServiceServer) Invoke(ctx context.Context, req *pb.InvokeRequest) (res *ipb.InvokeResponse, err error)

func (*DriverServiceServer) Monitoring

func (*DriverServiceServer) PrepareService

func (s *DriverServiceServer) PrepareService(ctx context.Context, sp *sppb.ServicesProvider, igroup *ipb.InstancesGroup, client *one.ONeClient, group float64) (map[string]*structpb.Value, error)

func (*DriverServiceServer) TestInstancesGroupConfig

func (*DriverServiceServer) TestServiceProviderConfig

func (s *DriverServiceServer) TestServiceProviderConfig(ctx context.Context, req *pb.TestServiceProviderConfigRequest) (res *sppb.TestResponse, err error)

func (*DriverServiceServer) Up

type LazyTimeline

type LazyTimeline func() []one.Record

type LazyVM

type LazyVM func() (*onevm.VM, error)

func GetVM

func GetVM(f func() (*onevm.VM, error)) LazyVM

type RecordsPublisherFunc

type RecordsPublisherFunc func([]*billingpb.Record)

Jump to

Keyboard shortcuts

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