Documentation ¶
Index ¶
- Variables
- type ACLRepo
- type ACLUsecase
- func (ac *ACLUsecase) CreateRole(ctx context.Context, o *Role) (*Role, error)
- func (ac *ACLUsecase) DeleteRoles(ctx context.Context, ids []string) error
- func (ac *ACLUsecase) GetRole(ctx context.Context, o *Role) (*Role, error)
- func (ac *ACLUsecase) ListRoles(ctx context.Context, in *common.PagingRequest) (*common.PagingResponse, error)
- func (ac *ACLUsecase) UpdateRole(ctx context.Context, o *Role) (*Role, error)
- type Role
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewACLUsecase)
Functions ¶
This section is empty.
Types ¶
type ACLRepo ¶
type ACLRepo interface { ListRoles(ctx context.Context, in *common.PagingRequest) (*common.PagingResponse, error) GetRole(ctx context.Context, o *Role) (*Role, error) CreateRole(ctx context.Context, o *Role) (*Role, error) UpdateRole(ctx context.Context, o *Role) (*Role, error) DeleteRoles(ctx context.Context, ids []string) error }
type ACLUsecase ¶
type ACLUsecase struct {
// contains filtered or unexported fields
}
func NewACLUsecase ¶
func NewACLUsecase(repo ACLRepo) *ACLUsecase
func (*ACLUsecase) CreateRole ¶
func (*ACLUsecase) DeleteRoles ¶
func (ac *ACLUsecase) DeleteRoles(ctx context.Context, ids []string) error
func (*ACLUsecase) ListRoles ¶
func (ac *ACLUsecase) ListRoles(ctx context.Context, in *common.PagingRequest) (*common.PagingResponse, error)
func (*ACLUsecase) UpdateRole ¶
Click to show internal directories.
Click to hide internal directories.