grpc

package
v0.0.0-...-ac5cff2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ACKFlag  = "ACK"
	NACKFlag = "NACK"

	Success              = 1
	CheckFormatError     = 4001
	ReqFormatError       = 4002
	RegisterWatcherError = 500
)
View Source
const (
	ClientIdentifierKey = "OpenSergoClientIdentifier"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(identifier model.ClientIdentifier, stream OpenSergoTransportStream) *Connection

func (*Connection) Identifier

func (c *Connection) Identifier() model.ClientIdentifier

func (*Connection) IsValid

func (c *Connection) IsValid() bool

func (*Connection) Stream

type ConnectionManager

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

func NewConnectionManager

func NewConnectionManager() *ConnectionManager

func (*ConnectionManager) Add

func (c *ConnectionManager) Add(namespace, app, kind string, connection *Connection) error

func (*ConnectionManager) Get

func (c *ConnectionManager) Get(namespace, app, kind string) ([]*Connection, bool)

func (*ConnectionManager) RemoveByIdentifier

func (c *ConnectionManager) RemoveByIdentifier(identifier model.ClientIdentifier) error

type ConnectionMap

type ConnectionMap map[model.ClientIdentifier]*Connection

type Server

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

Server represents the transport server of OpenSergo universal transport service (OUTS).

func NewServer

func NewServer(port uint32, subscribeHandlers []model.SubscribeRequestHandler) *Server

func (*Server) ComponentName

func (s *Server) ComponentName() string

func (*Server) ConnectionManager

func (s *Server) ConnectionManager() *ConnectionManager

func (*Server) Run

func (s *Server) Run() error

type TransportServer

type TransportServer struct {
	trpb.OpenSergoUniversalTransportServiceServer
	// contains filtered or unexported fields
}

TransportServer represents the gRPC server of OpenSergo universal transport service.

func (*TransportServer) SubscribeConfig

Jump to

Keyboard shortcuts

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