privacy

package
v0.0.0-...-9621b1e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package privacy implements the Privacy gRPC service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service) error

Option is a functional option to set the DBus objects in tests.

type Service

type Service struct {
	pb.UnimplementedPrivacyServiceServer
	// contains filtered or unexported fields
}

Service is the implementation of the privacy service.

func New

func New(opts ...Option) (*Service, error)

New returns a new instance of the Privacy service.

func (*Service) DisableLocationServices

func (s *Service) DisableLocationServices(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableLocationServices disables the location services.

func (*Service) EnableLocationServices

func (s *Service) EnableLocationServices(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableLocationServices enables the location services.

func (*Service) GetLocationServices

func (s *Service) GetLocationServices(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetLocationServices returns the status of the location services.

Jump to

Keyboard shortcuts

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