locale

package
v0.0.0-...-bcd9aa3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package locale implements the Locale 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.UnimplementedLocaleServiceServer
	// contains filtered or unexported fields
}

Service is the implementation of the User module service.

func New

func New(conn *dbus.Conn, opts ...Option) (*Service, error)

New returns a new instance of the Locale service.

func (*Service) GetLocale

func (s *Service) GetLocale(ctx context.Context, req *emptypb.Empty) (*pb.GetLocaleResponse, error)

GetLocale returns the current locale.

func (*Service) SetLocale

func (s *Service) SetLocale(ctx context.Context, req *pb.SetLocaleRequest) (*emptypb.Empty, error)

SetLocale sets the current locale.

Jump to

Keyboard shortcuts

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