Documentation ¶
Index ¶
- type Server
- type UserSettingsServer
- func (s *UserSettingsServer) DeleteUserSettings(ctx context.Context, req *user_settings.DeleteUserSettingsRequest) (*pb.Empty, error)
- func (s *UserSettingsServer) GetUserSettings(ctx context.Context, req *user_settings.GetUserSettingsRequest) (*user_settings.GetUserSettingsResponse, error)
- func (s *UserSettingsServer) PutUserSettings(ctx context.Context, req *user_settings.PutUserSettingsRequest) (*user_settings.PutUserSettingsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserSettingsServer ¶
type UserSettingsServer struct {
// contains filtered or unexported fields
}
UserSettingsServer is a map of user Id to map of
func New ¶
func New(db *postgres.DB, storage storage.Client) *UserSettingsServer
New constructs a UserSettingsServer object
func (*UserSettingsServer) DeleteUserSettings ¶
func (s *UserSettingsServer) DeleteUserSettings(ctx context.Context, req *user_settings.DeleteUserSettingsRequest) (*pb.Empty, error)
rpc DeleteUserSettings(DeleteUserSettingsRequest) returns (DeleteUserSettingsResponse){
func (*UserSettingsServer) GetUserSettings ¶
func (s *UserSettingsServer) GetUserSettings(ctx context.Context, req *user_settings.GetUserSettingsRequest) (*user_settings.GetUserSettingsResponse, error)
GetUserSettings is the implementation of api /user-settings/{user.name}/{user.connector}
func (*UserSettingsServer) PutUserSettings ¶
func (s *UserSettingsServer) PutUserSettings(ctx context.Context, req *user_settings.PutUserSettingsRequest) (*user_settings.PutUserSettingsResponse, error)
rpc UpdateUserSettings(PutUserSettings) returns (UpdateUserSettingsResponse) {
Click to show internal directories.
Click to hide internal directories.