customattrs

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Service), "*"),
	wire.Struct(new(ServiceNoEvent), "*"),
)

Functions

This section is empty.

Types

type EventService

type EventService interface {
	DispatchEventOnCommit(payload event.Payload) error
}

type Service

type Service struct {
	Config         *config.UserProfileConfig
	ServiceNoEvent *ServiceNoEvent
	Events         EventService
}

func (*Service) ReadCustomAttributesInStorageForm

func (s *Service) ReadCustomAttributesInStorageForm(
	role accesscontrol.Role,
	userID string,
	storageForm map[string]interface{},
) (map[string]interface{}, error)

func (*Service) UpdateAllCustomAttributes

func (s *Service) UpdateAllCustomAttributes(role accesscontrol.Role, userID string, reprForm map[string]interface{}) error

func (*Service) UpdateCustomAttributesWithForm

func (s *Service) UpdateCustomAttributesWithForm(role accesscontrol.Role, userID string, jsonPointerMap map[string]string) error

func (*Service) UpdateCustomAttributesWithList

func (s *Service) UpdateCustomAttributesWithList(role accesscontrol.Role, userID string, attrs attrs.List) error

type ServiceNoEvent

type ServiceNoEvent struct {
	Config      *config.UserProfileConfig
	UserQueries UserQueries
	UserStore   UserStore
}

func (*ServiceNoEvent) ReadCustomAttributesInStorageForm

func (s *ServiceNoEvent) ReadCustomAttributesInStorageForm(
	role accesscontrol.Role,
	userID string,
	storageForm map[string]interface{},
) (map[string]interface{}, error)

func (*ServiceNoEvent) ReadCustomAttributesInStorageFormForUsers

func (s *ServiceNoEvent) ReadCustomAttributesInStorageFormForUsers(
	role accesscontrol.Role,
	userIDs []string,
	storageForms []map[string]interface{},
) (map[string]map[string]interface{}, error)

Batch ReadCustomAttributesInStorageForm

func (*ServiceNoEvent) UpdateAllCustomAttributes

func (s *ServiceNoEvent) UpdateAllCustomAttributes(role accesscontrol.Role, userID string, reprForm map[string]interface{}) error

func (*ServiceNoEvent) UpdateCustomAttributesWithForm

func (s *ServiceNoEvent) UpdateCustomAttributesWithForm(role accesscontrol.Role, userID string, form map[string]string) error

func (*ServiceNoEvent) UpdateCustomAttributesWithList

func (s *ServiceNoEvent) UpdateCustomAttributesWithList(role accesscontrol.Role, userID string, l attrs.List) error

type UserQueries

type UserQueries interface {
	GetRaw(userID string) (*user.User, error)
}

type UserStore

type UserStore interface {
	UpdateCustomAttributes(userID string, storageForm map[string]interface{}) error
}

Jump to

Keyboard shortcuts

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