rpc

package
v0.0.0-...-81c02da Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package rpc have the functionality of rpc caller functions

Index

Constants

This section is empty.

Variables

View Source
var (
	//JSONMarshal ...
	JSONMarshal = json.Marshal
)

Functions

This section is empty.

Types

type Events

type Events struct {
	Connector *events.ExternalInterfaces
}

Events struct helps to register service

func GetPluginContactInitializer

func GetPluginContactInitializer() *Events

GetPluginContactInitializer initializes all the required connection functions for the events execution

func (*Events) CreateDefaultEventSubscription

func (e *Events) CreateDefaultEventSubscription(ctx context.Context, req *eventsproto.DefaultEventSubRequest) (*eventsproto.DefaultEventSubResponse, error)

CreateDefaultEventSubscription defines the operations which handles the RPC request response after computer system restarts ,This will triggered from aggregation service whenever a computer system is added

func (*Events) CreateEventSubscription

func (e *Events) CreateEventSubscription(ctx context.Context, req *eventsproto.EventSubRequest) (*eventsproto.EventSubResponse, error)

CreateEventSubscription defines the operations which handles the RPC request response for the Create event subscription RPC call to events micro service. The functionality is to create the subscription with Resource provided in origin resources.

func (*Events) DeleteAggregateSubscriptionsRPC

func (e *Events) DeleteAggregateSubscriptionsRPC(ctx context.Context, req *eventsproto.EventUpdateRequest) (*eventsproto.SubscribeEMBResponse, error)

DeleteAggregateSubscriptionsRPC defines the operations which handles the RPC request response it remove subscription details

func (*Events) DeleteEventSubscription

func (e *Events) DeleteEventSubscription(ctx context.Context, req *eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)

DeleteEventSubscription defines the operations which handles the RPC request response for the delete event subscription RPC call to events micro service. The functionality is to delete the subscription details.

func (*Events) GetEventService

GetEventService handles the RPC to get EventService details.

func (*Events) GetEventSubscription

func (e *Events) GetEventSubscription(ctx context.Context, req *eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)

GetEventSubscription defines the operations which handles the RPC request response for the get event subscription RPC call to events micro service. The functionality is to get the subscription details.

func (*Events) GetEventSubscriptionsCollection

func (e *Events) GetEventSubscriptionsCollection(ctx context.Context, req *eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)

GetEventSubscriptionsCollection defines the operations which handles the RPC request response for the get event subscriptions collection RPC call to events micro service. The functionality is to get the collection of subscription details.

func (*Events) IsAggregateHaveSubscription

func (e *Events) IsAggregateHaveSubscription(ctx context.Context, req *eventsproto.EventUpdateRequest) (*eventsproto.SubscribeEMBResponse, error)

IsAggregateHaveSubscription defines the operations which handles the RPC request response

func (*Events) RemoveEventSubscriptionsRPC

func (e *Events) RemoveEventSubscriptionsRPC(ctx context.Context, req *eventsproto.EventUpdateRequest) (*eventsproto.SubscribeEMBResponse, error)

RemoveEventSubscriptionsRPC defines the operations which handles the RPC request response it subscribe to the given event message bus queues

func (*Events) SubmitTestEvent

SubmitTestEvent defines the operations which handles the RPC request response for the SubmitTestEvent RPC call to events micro service. The functionality is to submit a test event.

func (*Events) SubscribeEMB

SubscribeEMB defines the operations which handles the RPC request response it subscribe to the given event message bus queues

func (*Events) UpdateEventSubscriptionsRPC

func (e *Events) UpdateEventSubscriptionsRPC(ctx context.Context, req *eventsproto.EventUpdateRequest) (*eventsproto.SubscribeEMBResponse, error)

UpdateEventSubscriptionsRPC defines the operations which handles the RPC request response it subscribe to the given event message bus queues

func (*Events) UpdateSubscriptionLocationRPC

func (e *Events) UpdateSubscriptionLocationRPC(ctx context.Context, in *eventsproto.UpdateSubscriptionLocation) (*eventsproto.SubscribeEMBResponse, error)

UpdateSubscriptionLocationRPC defines the operations which handles the RPC request response it updates subscription location

Jump to

Keyboard shortcuts

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