Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Service ¶
type Service interface { // Deprecated: please explicitly pick a version if possible. Namespaces(ctx context.Context) (list []map[string]string, err error) // Deprecated: please explicitly pick a version if possible. Detail(ctx context.Context, id int64) (map[string]interface{}, error) // Deprecated: please explicitly pick a version if possible. Post(ctx context.Context, username, email, password string, state int64, namespaces []string, roleIds []int64) error // Deprecated: please explicitly pick a version if possible. Update(ctx context.Context, id int64, username, email, password string, state int64, namespaces []string, roleIds []int64) error // Deprecated: please explicitly pick a version if possible. List(ctx context.Context, page, limit int, email string) (map[string]interface{}, error) // Deprecated: please explicitly pick a version if possible. Me(ctx context.Context) (map[string]interface{}, error) All(ctx context.Context) (interface{}, error) }
func NewService ¶
func NewService(logger log.Logger, config *config.Config, casbin casbin.Casbin, store repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.