Documentation ¶
Index ¶
- func SetDescription[T customer.User](service *Service[T]) api_server.ResourceEndpointI
- func SetName[T customer.User](service *Service[T]) api_server.ResourceEndpointI
- func Setter(setter customer.NameAndDescriptionSetter, request api_server.Request) customer.NameAndDescriptionSetter
- type CustomerService
- type Endpoint
- type Service
- type SetDescriptionEndpoint
- type SetNameEndpoint
- type TenancyWithSetters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDescription ¶
func SetDescription[T customer.User](service *Service[T]) api_server.ResourceEndpointI
func SetName ¶
func SetName[T customer.User](service *Service[T]) api_server.ResourceEndpointI
func Setter ¶
func Setter(setter customer.NameAndDescriptionSetter, request api_server.Request) customer.NameAndDescriptionSetter
Types ¶
type CustomerService ¶
func NewCustomerService ¶
func NewCustomerService(customers *customer.Manager) *CustomerService
type Endpoint ¶
type Endpoint[T customer.User] struct { api_server.ResourceEndpoint // contains filtered or unexported fields }
func (*Endpoint[T]) Init ¶
func (e *Endpoint[T]) Init(ep api_server.ResourceEndpointI, fieldName string, s *Service[T], op api.Operation) api_server.ResourceEndpointI
type Service ¶
type Service[T customer.User] struct { *user_service.UserService[T] Controller customer.UserNameAndDescriptionController[T] }
func NewService ¶
func NewServiceExtended ¶
type SetDescriptionEndpoint ¶
func (*SetDescriptionEndpoint[T]) HandleRequest ¶
func (s *SetDescriptionEndpoint[T]) HandleRequest(request api_server.Request) error
type SetNameEndpoint ¶
func (*SetNameEndpoint[T]) HandleRequest ¶
func (s *SetNameEndpoint[T]) HandleRequest(request api_server.Request) error
type TenancyWithSetters ¶
type TenancyWithSetters interface {
CustomerFieldSetter() customer.NameAndDescriptionSetter
}
Click to show internal directories.
Click to hide internal directories.