toolservice

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 7 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 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) 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