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 ¶
func (a *Service) GetUserPreferences(ctx context.Context, _ *userpreferences.GetUserPreferencesRequest) (*userpreferences.GetUserPreferencesResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.