service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUserExist user already exists
	ErrUserExist = errors.New("user exist")
	// ErrWorkspaceExist workspace already exists
	ErrWorkspaceExist = errors.New("workspace exist")
)
View Source
var (
	// ErrInvalidUser invalid user
	ErrInvalidUser = errors.New("invalid user")
	// ErrIncorrectPassword incorrect password
	ErrIncorrectPassword = errors.New("incorrect password")
)

Functions

This section is empty.

Types

type IPipe

type IPipe interface {
	Pipe(ctx context.Context, userName values.UserName, connection *domain.Connection) error
}

type IUser

type IUser interface {
	New(ctx context.Context, name values.UserName, password values.Password) error
	ResetContainer(ctx context.Context, userName values.UserName) error
	Auth(ctx context.Context, name values.UserName, password values.Password) (bool, error)
}

type Pipe

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

func (*Pipe) Pipe

func (p *Pipe) Pipe(ctx context.Context, userName values.UserName, connection *domain.Connection) error

type Setup

type Setup struct {
	repository.ITransaction
	repository.IUser
	// contains filtered or unexported fields
}

func (*Setup) Setup

func (s *Setup) Setup() error

type User

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

func (*User) Auth

func (u *User) Auth(ctx context.Context, name values.UserName, password values.Password) (bool, error)

func (*User) New

func (u *User) New(ctx context.Context, name values.UserName, password values.Password) error

func (*User) ResetContainer

func (u *User) ResetContainer(ctx context.Context, userName values.UserName) error

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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