application

package
v0.0.0-...-58cf2e1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryAdapter

type QueryAdapter struct {
	Service *as.Service
}

QueryAdapter is an adapter for Hexagonal Architecture Pattern. It is used to communicate with the application layer.

func NewQueryAdapter

func NewQueryAdapter(s *as.Service) QueryAdapter

NewQueryAdapter creates a new *QueryAdapter.

func (QueryAdapter) GetDlrsByFilter

func (a QueryAdapter) GetDlrsByFilter(ctx context.Context, dlrFilter *pb.DlrFilter) (*pb.Dlrs, error)

GetDlrsByFilter returns the dlrs that match the given filter.

func (QueryAdapter) GetErrors

func (a QueryAdapter) GetErrors(ctx context.Context) (*pb.Errors, error)

GetErrors returns the built-in errors.

func (QueryAdapter) GetUsersByFilter

func (a QueryAdapter) GetUsersByFilter(ctx context.Context, userFilter *pb.UserFilter) (*pb.Users, error)

GetUsersByFilter returns the users that match the given filter.

Jump to

Keyboard shortcuts

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