toolservice

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRole added in v0.0.5

func CreateRole(ctx context.Context, dbc db.Client, roleData *fs.Role) (*fs.Role, error)

func ResetAdminPassword added in v0.5.1

func ResetAdminPassword(ctx context.Context,
	dbClient db.Client,
	password string,
	id int,
) (err error)

func Setup added in v0.0.5

func Setup(
	ctx context.Context,
	dbClient db.Client,
	logger logger.Logger,
	username, email, password string,
) (err error)

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() db.Client
}

type StatsData

type StatsData struct {
	TotalSchemas int `json:"totalSchemas"`
	TotalUsers   int `json:"totalUsers"`
	TotalRoles   int `json:"totalRoles"`
	TotalFiles   int `json:"totalFiles"`
}

type ToolService

type ToolService struct {
	DB func() db.Client
}

func New added in v0.0.5

func New(app AppLike) *ToolService

func (*ToolService) CreateResource added in v0.6.0

func (s *ToolService) CreateResource(api *fs.Resource)

func (*ToolService) Stats

func (s *ToolService) Stats(c fs.Context, _ any) (_ *StatsData, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL