Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) CreateUser(user *baasapi.User) error
- func (service *Service) DeleteUser(ID baasapi.UserID) error
- func (service *Service) UpdateUser(ID baasapi.UserID, user *baasapi.User) error
- func (service *Service) User(ID baasapi.UserID) (*baasapi.User, error)
- func (service *Service) UserByUsername(username string) (*baasapi.User, error)
- func (service *Service) Users() ([]baasapi.User, error)
- func (service *Service) UsersByRole(role baasapi.UserRole) ([]baasapi.User, error)
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "users"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a service for managing baask8s data.
func NewService ¶
NewService creates a new instance of a service.
func (*Service) CreateUser ¶
CreateUser creates a new user.
func (*Service) DeleteUser ¶
DeleteUser deletes a user.
func (*Service) UpdateUser ¶
UpdateUser saves a user.
func (*Service) UserByUsername ¶
UserByUsername returns a user by username.
func (*Service) UsersByRole ¶
UsersByRole return an array containing all the users with the specified role.
Click to show internal directories.
Click to hide internal directories.