userpreferencesv1

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	userpreferences.UnimplementedUserPreferencesServiceServer
	// contains filtered or unexported fields
}

Service implements the teleport.userpreferences.v1.UserPreferencesService RPC service.

func NewService

func NewService(cfg *ServiceConfig) (*Service, error)

NewService returns a new user preferences gRPC service.

func (*Service) GetUserPreferences

GetUserPreferences returns the user preferences for a given user.

func (*Service) UpsertUserPreferences

func (a *Service) UpsertUserPreferences(ctx context.Context, req *userpreferences.UpsertUserPreferencesRequest) (*emptypb.Empty, error)

UpsertUserPreferences creates or updates user preferences for a given username.

type ServiceConfig

type ServiceConfig struct {
	Backend    services.UserPreferences
	Authorizer authz.Authorizer
	Logger     *logrus.Entry
}

ServiceConfig holds configuration options for the user preferences service.

Jump to

Keyboard shortcuts

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