remote

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MessageSize = 4096 // 4k data payload

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(l hclog.Logger, certPool *x509.CertPool, cert *tls.Certificate, integr integrations.Integration) *Server

New creates a new gRPC remote connector server

func (*Server) Closed

func (s *Server) Closed() bool

Closed returns true or false if server shutdown has been called

func (*Server) DestroyService

func (s *Server) DestroyService(ctx context.Context, dr *shipyard.DestroyRequest) (*shipyard.NullMessage, error)

DestroyService is the public gRPC API method to remove a service

func (*Server) ExposeService

func (s *Server) ExposeService(ctx context.Context, r *shipyard.ExposeRequest) (*shipyard.ExposeResponse, error)

ExposeService is the public gRPC API method for creating a service connection

func (*Server) ListServices

func (s *Server) ListServices(ctx context.Context, m *shipyard.NullMessage) (*shipyard.ListResponse, error)

ListServices returns a list of active services along with their state

func (*Server) OpenStream

OpenStream is a called by a remote server to open a bidirectional stream between two Connectors

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown the server, closing all connections and listeners

Jump to

Keyboard shortcuts

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