Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
settingspb.UnimplementedSettingsServer
// contains filtered or unexported fields
}
func (*Server) UpdateSettings ¶
func (s *Server) UpdateSettings(ctx context.Context, req *settingspb.UpdateSettingsRequest) (*settingspb.UpdateSettingsResponse, error)
type Store ¶
type Store interface {
// GetSettings returns the settings for a user, or ErrNotFound.
GetSettings(ctx context.Context, userID *commonpb.UserId) (*Settings, error)
// SetRegion sets the region for a user, provided they exist.
//
// ErrNotFound is returned if the user does not exist.
SetRegion(ctx context.Context, userID *commonpb.UserId, region *commonpb.Region) error
// SetLocale sets the locale for a user, provided they exist.
//
// ErrNotFound is returned if the user does not exist.
SetLocale(ctx context.Context, userID *commonpb.UserId, locale *commonpb.Locale) error
}
Click to show internal directories.
Click to hide internal directories.