listing

package
v0.0.0-...-7842574 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortUsers

func SortUsers(users []domain.User, field string)

Types

type Service

type Service interface {
	// Check if the request of is appropriate
	Validate(usernames []string) error

	// Return the list of details by username
	ShowDetails(usernames []string) ([]domain.User, error)
}

Define a service interface for the business logic

func NewService

func NewService(repository api.Repository, caching cache.Repository, logger zerolog.Logger) Service

Define a constructor to inject the Repository to this service

Jump to

Keyboard shortcuts

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