toolservice

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRole added in v0.0.5

func CreateRole(db app.DBClient, roleData *app.Role) (uint64, error)

func Setup added in v0.0.5

func Setup(
	dbClient app.DBClient,
	logger app.Logger,
	username, email, password string,
) (err error)

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() app.DBClient
}

type StatsData

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

type ToolService

type ToolService struct {
	DB func() app.DBClient
}

func New added in v0.0.5

func New(app AppLike) *ToolService

func (*ToolService) Stats

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

Jump to

Keyboard shortcuts

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