instances

package
v0.0.15-r7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

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 (
	RabbitMQConn string
)

Functions

This section is empty.

Types

type InstancesServer

type InstancesServer struct {
	pb.UnimplementedInstancesServiceServer
	// contains filtered or unexported fields
}

func NewInstancesServiceServer

func NewInstancesServiceServer(logger *zap.Logger, db driver.Database, rbmq *amqp.Connection) *InstancesServer

func (*InstancesServer) Invoke

func (*InstancesServer) RegisterDriver

func (s *InstancesServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)

type Pub

type Pub func(msg *pb.ObjectData) error

type PubSub

type PubSub struct {
	// contains filtered or unexported fields
}

func NewPubSub

func NewPubSub(log *zap.Logger, db *driver.Database, rbmq *amqp.Connection) *PubSub

func (*PubSub) Channel

func (s *PubSub) Channel() *amqp.Channel

func (*PubSub) Consumer

func (s *PubSub) Consumer(col string, msgs <-chan amqp.Delivery)

func (*PubSub) ConsumerInit

func (s *PubSub) ConsumerInit(ch *amqp.Channel, exchange, subtopic, col string)

func (*PubSub) Publisher

func (s *PubSub) Publisher(ch *amqp.Channel, exchange, subtopic string) Pub

func (*PubSub) TopicExchange

func (s *PubSub) TopicExchange(ch *amqp.Channel, name string)

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