handler

package
v0.9.3-alpha Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBToPBConnector

func DBToPBConnector(
	dbConnector *datamodel.Connector,
	connectorType datamodel.ConnectorType,
	owner string,
	connectorDefinition string) interface{}

DBToPBConnector converts db data model to protobuf data model

func DBToPBConnectorDefinition

func DBToPBConnectorDefinition(dbSrcDef *datamodel.ConnectorDefinition, connectorType datamodel.ConnectorType) interface{}

DBToPBConnectorDefinition converts db data model to protobuf data model

func NewPrivateHandler

NewPrivateHandler initiates a handler instance

func NewPublicHandler

NewPublicHandler initiates a handler instance

func PBToDBConnector

func PBToDBConnector(
	pbConnector interface{},
	connectorType datamodel.ConnectorType,
	ownerRscName string,
	connectorDefinitionUID uuid.UUID) *datamodel.Connector

PBToDBConnector converts protobuf data model to db data model

Types

type PrivateHandler

type PrivateHandler struct {
	connectorPB.UnimplementedConnectorPrivateServiceServer
	// contains filtered or unexported fields
}

func (*PrivateHandler) GetService

func (h *PrivateHandler) GetService() service.Service

GetService returns the service

func (*PrivateHandler) SetService

func (h *PrivateHandler) SetService(s service.Service)

SetService sets the service

type PublicHandler

type PublicHandler struct {
	connectorPB.UnimplementedConnectorPublicServiceServer
	// contains filtered or unexported fields
}

func (*PublicHandler) GetService

func (h *PublicHandler) GetService() service.Service

GetService returns the service

func (*PublicHandler) Liveness

func (*PublicHandler) Readiness

func (*PublicHandler) SetService

func (h *PublicHandler) SetService(s service.Service)

SetService sets the service

Jump to

Keyboard shortcuts

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