customattrs

package
v0.0.0-...-2b8ec9a Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

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 {
	DispatchEvent(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) UpdateCustomAttributesWithJSONPointerMap

func (s *Service) UpdateCustomAttributesWithJSONPointerMap(role accesscontrol.Role, userID string, jsonPointerMap map[string]string) 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) UpdateAllCustomAttributes

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

func (*ServiceNoEvent) UpdateCustomAttributesWithJSONPointerMap

func (s *ServiceNoEvent) UpdateCustomAttributesWithJSONPointerMap(role accesscontrol.Role, userID string, jsonPointerMap map[string]string) 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