service

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 14 Imported by: 0

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