users

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtSvc

type JwtSvc interface {
	GenerateToken(
		_ context.Context,
		user *database.User,
	) (string, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	cfg *ServiceConfig,
) *Service

func (*Service) Create

func (*Service) Login

func (*Service) ShouldCreateAdmin

func (s *Service) ShouldCreateAdmin(ctx context.Context) (bool, error)

type ServiceConfig

type ServiceConfig struct {
	JwtSvc JwtSvc
}

Jump to

Keyboard shortcuts

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