grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 2000
	MulticastPort  = 5683
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientApplicationServer

type ClientApplicationServer struct {
	pb.UnimplementedClientApplicationServer
	// contains filtered or unexported fields
}

func NewClientApplicationServer

func NewClientApplicationServer(serviceDevice *serviceDevice.Service, info *ServiceInformation, logger log.Logger) *ClientApplicationServer

func (*ClientApplicationServer) ClearCache

func (*ClientApplicationServer) CreateResource

func (*ClientApplicationServer) DeleteResource

func (*ClientApplicationServer) DisownDevice

func (*ClientApplicationServer) GetDevice

func (*ClientApplicationServer) GetDevices

func (*ClientApplicationServer) GetInformation added in v0.0.6

func (*ClientApplicationServer) GetResource

func (*ClientApplicationServer) OwnDevice

func (*ClientApplicationServer) UpdateResource

func (*ClientApplicationServer) Version added in v0.0.6

func (s *ClientApplicationServer) Version() string

type Config

type Config = server.Config

type Service

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

func New

func New(ctx context.Context, serviceName string, config Config, clientApplicationServer *ClientApplicationServer, fileWatcher *fsnotify.Watcher, logger log.Logger, tracerProvider trace.TracerProvider) (*Service, error)

New creates new GRPC service

func (*Service) Address

func (s *Service) Address() string

func (*Service) Serve

func (s *Service) Serve() error

Serve starts the service's HTTP server and blocks

func (*Service) Stop

func (s *Service) Stop()

Shutdown ends serving

type ServiceInformation added in v0.0.6

type ServiceInformation = pb.GetInformationResponse

Jump to

Keyboard shortcuts

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