userscontracts

package
v0.0.0-...-caa7b66 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRequest

type AuthenticationRequest struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

AuthenticationRequest struct to receibe on authentication

type User

type User struct {
	Name     string `json:"name,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

User information

type UserService

type UserService interface {
	Save(ctx context.Context, user User) error
	Get(ctx context.Context, username string) (u User, err error)
	Update(ctx context.Context, user User) error
	Delete(ctx context.Context, username string) error
	Autenticate(ctx context.Context, user AuthenticationRequest) (User, error)
}

UserService service

Jump to

Keyboard shortcuts

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