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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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