Documentation
¶
Index ¶
- Constants
- type ClientApplicationServer
- func (s *ClientApplicationServer) ClearCache(ctx context.Context, _ *pb.ClearCacheRequest) (*pb.ClearCacheResponse, error)
- func (s *ClientApplicationServer) CreateResource(ctx context.Context, req *pb.CreateResourceRequest) (*grpcgwPb.CreateResourceResponse, error)
- func (s *ClientApplicationServer) DeleteResource(ctx context.Context, req *pb.DeleteResourceRequest) (*grpcgwPb.DeleteResourceResponse, error)
- func (s *ClientApplicationServer) DisownDevice(ctx context.Context, req *pb.DisownDeviceRequest) (*pb.DisownDeviceResponse, error)
- func (s *ClientApplicationServer) GetDevice(ctx context.Context, req *pb.GetDeviceRequest) (*grpcgwPb.Device, error)
- func (s *ClientApplicationServer) GetDeviceResourceLinks(ctx context.Context, req *pb.GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
- func (s *ClientApplicationServer) GetDevices(req *pb.GetDevicesRequest, srv pb.ClientApplication_GetDevicesServer) error
- func (s *ClientApplicationServer) GetInformation(ctx context.Context, _ *pb.GetInformationRequest) (*pb.GetInformationResponse, error)
- func (s *ClientApplicationServer) GetResource(ctx context.Context, req *pb.GetResourceRequest) (*grpcgwPb.Resource, error)
- func (s *ClientApplicationServer) OwnDevice(ctx context.Context, req *pb.OwnDeviceRequest) (*pb.OwnDeviceResponse, error)
- func (s *ClientApplicationServer) UpdateResource(ctx context.Context, req *pb.UpdateResourceRequest) (*grpcgwPb.UpdateResourceResponse, error)
- func (s *ClientApplicationServer) Version() string
- type Config
- type Service
- type ServiceInformation
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 (s *ClientApplicationServer) ClearCache(ctx context.Context, _ *pb.ClearCacheRequest) (*pb.ClearCacheResponse, error)
func (*ClientApplicationServer) CreateResource ¶
func (s *ClientApplicationServer) CreateResource(ctx context.Context, req *pb.CreateResourceRequest) (*grpcgwPb.CreateResourceResponse, error)
func (*ClientApplicationServer) DeleteResource ¶
func (s *ClientApplicationServer) DeleteResource(ctx context.Context, req *pb.DeleteResourceRequest) (*grpcgwPb.DeleteResourceResponse, error)
func (*ClientApplicationServer) DisownDevice ¶
func (s *ClientApplicationServer) DisownDevice(ctx context.Context, req *pb.DisownDeviceRequest) (*pb.DisownDeviceResponse, error)
func (*ClientApplicationServer) GetDevice ¶
func (s *ClientApplicationServer) GetDevice(ctx context.Context, req *pb.GetDeviceRequest) (*grpcgwPb.Device, error)
func (*ClientApplicationServer) GetDeviceResourceLinks ¶
func (s *ClientApplicationServer) GetDeviceResourceLinks(ctx context.Context, req *pb.GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
func (*ClientApplicationServer) GetDevices ¶
func (s *ClientApplicationServer) GetDevices(req *pb.GetDevicesRequest, srv pb.ClientApplication_GetDevicesServer) error
func (*ClientApplicationServer) GetInformation ¶ added in v0.0.6
func (s *ClientApplicationServer) GetInformation(ctx context.Context, _ *pb.GetInformationRequest) (*pb.GetInformationResponse, error)
func (*ClientApplicationServer) GetResource ¶
func (s *ClientApplicationServer) GetResource(ctx context.Context, req *pb.GetResourceRequest) (*grpcgwPb.Resource, error)
func (*ClientApplicationServer) OwnDevice ¶
func (s *ClientApplicationServer) OwnDevice(ctx context.Context, req *pb.OwnDeviceRequest) (*pb.OwnDeviceResponse, error)
func (*ClientApplicationServer) UpdateResource ¶
func (s *ClientApplicationServer) UpdateResource(ctx context.Context, req *pb.UpdateResourceRequest) (*grpcgwPb.UpdateResourceResponse, error)
func (*ClientApplicationServer) Version ¶ added in v0.0.6
func (s *ClientApplicationServer) Version() string
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
type ServiceInformation ¶ added in v0.0.6
type ServiceInformation = pb.GetInformationResponse
Click to show internal directories.
Click to hide internal directories.