Documentation
¶
Index ¶
- type Impl
- func (i *Impl) Create(ctx context.Context, req api.UserCreateReq, editors ...api.RequestEditorFn) (*api.User, error)
- func (i *Impl) CreateActiveByName(ctx context.Context, fullName string, editors ...api.RequestEditorFn) (*api.User, error)
- func (i *Impl) Delete(ctx context.Context, userID common.UserID, editors ...api.RequestEditorFn) (*common.GenericRsp, error)
- func (i *Impl) Get(ctx context.Context, userID common.UserID, editors ...api.RequestEditorFn) (*api.User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) Create ¶
func (i *Impl) Create(ctx context.Context, req api.UserCreateReq, editors ...api.RequestEditorFn) (*api.User, error)
Create creates a new user
func (*Impl) CreateActiveByName ¶
func (i *Impl) CreateActiveByName(ctx context.Context, fullName string, editors ...api.RequestEditorFn) (*api.User, error)
Create creates a new user
type User ¶
type User interface {
Create(ctx context.Context, req api.UserCreateReq, editors ...api.RequestEditorFn) (*api.User, error)
CreateActiveByName(ctx context.Context, fullName string, editors ...api.RequestEditorFn) (*api.User, error)
Get(ctx context.Context, userID common.UserID, editors ...api.RequestEditorFn) (*api.User, error)
Delete(ctx context.Context, userID common.UserID, editors ...api.RequestEditorFn) (*common.GenericRsp, error)
}
Click to show internal directories.
Click to hide internal directories.